Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: net/base/network_change_notifier.h

Issue 2785563002: Expire but don't clear HostCache on DNS config change (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/cronet/stale_host_resolver_unittest.cc ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_H_ 5 #ifndef NET_BASE_NETWORK_CHANGE_NOTIFIER_H_
6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_H_ 6 #define NET_BASE_NETWORK_CHANGE_NOTIFIER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 static void RemoveConnectionTypeObserver(ConnectionTypeObserver* observer); 392 static void RemoveConnectionTypeObserver(ConnectionTypeObserver* observer);
393 static void RemoveDNSObserver(DNSObserver* observer); 393 static void RemoveDNSObserver(DNSObserver* observer);
394 static void RemoveNetworkChangeObserver(NetworkChangeObserver* observer); 394 static void RemoveNetworkChangeObserver(NetworkChangeObserver* observer);
395 static void RemoveMaxBandwidthObserver(MaxBandwidthObserver* observer); 395 static void RemoveMaxBandwidthObserver(MaxBandwidthObserver* observer);
396 static void RemoveNetworkObserver(NetworkObserver* observer); 396 static void RemoveNetworkObserver(NetworkObserver* observer);
397 397
398 // Allow unit tests to trigger notifications. 398 // Allow unit tests to trigger notifications.
399 static void NotifyObserversOfIPAddressChangeForTests(); 399 static void NotifyObserversOfIPAddressChangeForTests();
400 static void NotifyObserversOfConnectionTypeChangeForTests( 400 static void NotifyObserversOfConnectionTypeChangeForTests(
401 ConnectionType type); 401 ConnectionType type);
402 static void NotifyObserversOfDNSChangeForTests();
402 static void NotifyObserversOfNetworkChangeForTests(ConnectionType type); 403 static void NotifyObserversOfNetworkChangeForTests(ConnectionType type);
403 static void NotifyObserversOfInitialDNSConfigReadForTests(); 404 static void NotifyObserversOfInitialDNSConfigReadForTests();
404 static void NotifyObserversOfMaxBandwidthChangeForTests( 405 static void NotifyObserversOfMaxBandwidthChangeForTests(
405 double max_bandwidth_mbps, 406 double max_bandwidth_mbps,
406 ConnectionType type); 407 ConnectionType type);
407 408
408 // Enable or disable notifications from the host. After setting to true, be 409 // Enable or disable notifications from the host. After setting to true, be
409 // sure to pump the RunLoop until idle to finish any preexisting 410 // sure to pump the RunLoop until idle to finish any preexisting
410 // notifications. To use this, it must must be called before a 411 // notifications. To use this, it must must be called before a
411 // NetworkChangeNotifier is created. 412 // NetworkChangeNotifier is created.
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 581
581 // Set true to disable non-test notifications (to prevent flakes in tests). 582 // Set true to disable non-test notifications (to prevent flakes in tests).
582 static bool test_notifications_only_; 583 static bool test_notifications_only_;
583 584
584 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifier); 585 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifier);
585 }; 586 };
586 587
587 } // namespace net 588 } // namespace net
588 589
589 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_H_ 590 #endif // NET_BASE_NETWORK_CHANGE_NOTIFIER_H_
OLDNEW
« no previous file with comments | « components/cronet/stale_host_resolver_unittest.cc ('k') | net/base/network_change_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698