Lines Matching defs:NetworkChangeNotifier

39 NetworkChangeNotifier* g_network_change_notifier = NULL;
44 class MockNetworkChangeNotifier : public NetworkChangeNotifier {
55 : public NetworkChangeNotifier::ConnectionTypeObserver,
56 public NetworkChangeNotifier::IPAddressObserver,
57 public NetworkChangeNotifier::DNSObserver,
58 public NetworkChangeNotifier::NetworkChangeObserver {
65 last_connection_type_(NetworkChangeNotifier::CONNECTION_UNKNOWN),
78 NetworkChangeNotifier::AddConnectionTypeObserver(this);
79 NetworkChangeNotifier::AddIPAddressObserver(this);
80 NetworkChangeNotifier::AddDNSObserver(this);
81 NetworkChangeNotifier::AddNetworkChangeObserver(this);
87 NetworkChangeNotifier::RemoveConnectionTypeObserver(this);
88 NetworkChangeNotifier::RemoveIPAddressObserver(this);
89 NetworkChangeNotifier::RemoveDNSObserver(this);
90 NetworkChangeNotifier::RemoveNetworkChangeObserver(this);
93 // NetworkChangeNotifier::IPAddressObserver implementation.
103 // NetworkChangeNotifier::ConnectionTypeObserver implementation.
105 NetworkChangeNotifier::ConnectionType type) OVERRIDE {
112 case NetworkChangeNotifier::CONNECTION_UNKNOWN:
118 case NetworkChangeNotifier::CONNECTION_ETHERNET:
124 case NetworkChangeNotifier::CONNECTION_WIFI:
130 case NetworkChangeNotifier::CONNECTION_2G:
136 case NetworkChangeNotifier::CONNECTION_3G:
142 case NetworkChangeNotifier::CONNECTION_4G:
148 case NetworkChangeNotifier::CONNECTION_NONE:
154 case NetworkChangeNotifier::CONNECTION_BLUETOOTH:
163 case NetworkChangeNotifier::CONNECTION_UNKNOWN:
167 case NetworkChangeNotifier::CONNECTION_ETHERNET:
171 case NetworkChangeNotifier::CONNECTION_WIFI:
175 case NetworkChangeNotifier::CONNECTION_2G:
179 case NetworkChangeNotifier::CONNECTION_3G:
183 case NetworkChangeNotifier::CONNECTION_4G:
187 case NetworkChangeNotifier::CONNECTION_NONE:
191 case NetworkChangeNotifier::CONNECTION_BLUETOOTH:
198 case NetworkChangeNotifier::CONNECTION_UNKNOWN:
202 case NetworkChangeNotifier::CONNECTION_ETHERNET:
206 case NetworkChangeNotifier::CONNECTION_WIFI:
210 case NetworkChangeNotifier::CONNECTION_2G:
214 case NetworkChangeNotifier::CONNECTION_3G:
218 case NetworkChangeNotifier::CONNECTION_4G:
222 case NetworkChangeNotifier::CONNECTION_NONE:
226 case NetworkChangeNotifier::CONNECTION_BLUETOOTH:
232 if (type != NetworkChangeNotifier::CONNECTION_NONE) {
251 NetworkChangeNotifier::LogOperatorCodeHistogram(type);
264 // NetworkChangeNotifier::DNSObserver implementation.
271 // NetworkChangeNotifier::NetworkChangeObserver implementation.
273 NetworkChangeNotifier::ConnectionType type) OVERRIDE {
275 if (type != NetworkChangeNotifier::CONNECTION_NONE) {
312 if (last_connection_type_ != NetworkChangeNotifier::CONNECTION_NONE)
324 NetworkChangeNotifier::GetConnectionType();
327 NetworkChangeNotifier::CONNECTION_NONE) {
350 // with |NetworkChangeNotifier::GetConnectionType| to verify the connection
355 NetworkChangeNotifier::ConnectionType last_connection_type_;
357 // |NetworkChangeNotifier::GetConnectionType| in |NotifyDataReceived|.
358 NetworkChangeNotifier::ConnectionType last_polled_connection_type_;
360 // NetworkChangeNotifier thought network connection was offline.
383 class NetworkChangeNotifier::NetworkState {
403 NetworkChangeNotifier::NetworkChangeCalculatorParams::
408 class NetworkChangeNotifier::NetworkChangeCalculator
432 // NetworkChangeNotifier::IPAddressObserver implementation.
441 // NetworkChangeNotifier::ConnectionTypeObserver implementation.
466 NetworkChangeNotifier::NotifyObserversOfNetworkChange(CONNECTION_NONE);
467 NetworkChangeNotifier::NotifyObserversOfNetworkChange(
487 NetworkChangeNotifier::~NetworkChangeNotifier() {
494 void NetworkChangeNotifier::SetFactory(
501 NetworkChangeNotifier* NetworkChangeNotifier::Create() {
530 NetworkChangeNotifier::ConnectionType
531 NetworkChangeNotifier::GetConnectionType() {
538 void NetworkChangeNotifier::GetDnsConfig(DnsConfig* config) {
547 const char* NetworkChangeNotifier::ConnectionTypeToString(
561 NetworkChangeNotifier::CONNECTION_LAST + 1,
571 void NetworkChangeNotifier::NotifyDataReceived(const URLRequest& request,
582 void NetworkChangeNotifier::InitHistogramWatcher() {
590 void NetworkChangeNotifier::ShutdownHistogramWatcher() {
597 void NetworkChangeNotifier::LogOperatorCodeHistogram(ConnectionType type) {
602 if (type == NetworkChangeNotifier::CONNECTION_2G ||
603 type == NetworkChangeNotifier::CONNECTION_3G ||
604 type == NetworkChangeNotifier::CONNECTION_4G) {
618 NetworkChangeNotifier::GetAddressTracker() {
625 bool NetworkChangeNotifier::IsOffline() {
630 bool NetworkChangeNotifier::IsConnectionCellular(ConnectionType type) {
650 NetworkChangeNotifier* NetworkChangeNotifier::CreateMock() {
654 void NetworkChangeNotifier::AddIPAddressObserver(IPAddressObserver* observer) {
659 void NetworkChangeNotifier::AddConnectionTypeObserver(
667 void NetworkChangeNotifier::AddDNSObserver(DNSObserver* observer) {
674 void NetworkChangeNotifier::AddNetworkChangeObserver(
682 void NetworkChangeNotifier::RemoveIPAddressObserver(
690 void NetworkChangeNotifier::RemoveConnectionTypeObserver(
698 void NetworkChangeNotifier::RemoveDNSObserver(DNSObserver* observer) {
705 void NetworkChangeNotifier::RemoveNetworkChangeObserver(
714 void NetworkChangeNotifier::NotifyObserversOfIPAddressChangeForTests() {
720 void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests(
727 void NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests(
734 void NetworkChangeNotifier::SetTestNotificationsOnly(bool test_only) {
739 NetworkChangeNotifier::NetworkChangeNotifier(
764 NetworkChangeNotifier::GetAddressTrackerInternal() const {
770 void NetworkChangeNotifier::NotifyObserversOfIPAddressChange() {
778 void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChange() {
787 void NetworkChangeNotifier::NotifyObserversOfNetworkChange(
796 void NetworkChangeNotifier::NotifyObserversOfDNSChange() {
804 void NetworkChangeNotifier::SetDnsConfig(const DnsConfig& config) {
811 void NetworkChangeNotifier::NotifyObserversOfIPAddressChangeImpl() {
815 void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeImpl(
821 void NetworkChangeNotifier::NotifyObserversOfNetworkChangeImpl(
827 void NetworkChangeNotifier::NotifyObserversOfDNSChangeImpl() {
831 NetworkChangeNotifier::DisableForTest::DisableForTest()
837 NetworkChangeNotifier::DisableForTest::~DisableForTest() {