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

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

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 | « net/base/network_change_notifier.h ('k') | net/dns/host_resolver_impl.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 #include "net/base/network_change_notifier.h" 5 #include "net/base/network_change_notifier.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <unordered_set> 8 #include <unordered_set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 } 923 }
924 924
925 // static 925 // static
926 void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests( 926 void NetworkChangeNotifier::NotifyObserversOfConnectionTypeChangeForTests(
927 ConnectionType type) { 927 ConnectionType type) {
928 if (g_network_change_notifier) 928 if (g_network_change_notifier)
929 g_network_change_notifier->NotifyObserversOfConnectionTypeChangeImpl(type); 929 g_network_change_notifier->NotifyObserversOfConnectionTypeChangeImpl(type);
930 } 930 }
931 931
932 // static 932 // static
933 void NetworkChangeNotifier::NotifyObserversOfDNSChangeForTests() {
934 if (g_network_change_notifier)
935 g_network_change_notifier->NotifyObserversOfDNSChangeImpl();
936 }
937
938 // static
933 void NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests( 939 void NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests(
934 ConnectionType type) { 940 ConnectionType type) {
935 if (g_network_change_notifier) 941 if (g_network_change_notifier)
936 g_network_change_notifier->NotifyObserversOfNetworkChangeImpl(type); 942 g_network_change_notifier->NotifyObserversOfNetworkChangeImpl(type);
937 } 943 }
938 944
939 // static 945 // static
940 void NetworkChangeNotifier::NotifyObserversOfInitialDNSConfigReadForTests() { 946 void NetworkChangeNotifier::NotifyObserversOfInitialDNSConfigReadForTests() {
941 if (g_network_change_notifier) 947 if (g_network_change_notifier)
942 g_network_change_notifier->NotifyObserversOfInitialDNSConfigReadImpl(); 948 g_network_change_notifier->NotifyObserversOfInitialDNSConfigReadImpl();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 1188
1183 NetworkChangeNotifier::DisableForTest::~DisableForTest() { 1189 NetworkChangeNotifier::DisableForTest::~DisableForTest() {
1184 DCHECK(!g_network_change_notifier); 1190 DCHECK(!g_network_change_notifier);
1185 g_network_change_notifier = network_change_notifier_; 1191 g_network_change_notifier = network_change_notifier_;
1186 } 1192 }
1187 1193
1188 void NetworkChangeNotifier::DNSObserver::OnInitialDNSConfigRead() { 1194 void NetworkChangeNotifier::DNSObserver::OnInitialDNSConfigRead() {
1189 } 1195 }
1190 1196
1191 } // namespace net 1197 } // namespace net
OLDNEW
« no previous file with comments | « net/base/network_change_notifier.h ('k') | net/dns/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698