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

Side by Side Diff: chrome/browser/chromeos/net/network_change_notifier_chromeos.h

Issue 11367048: This is the first pass at making GetIPConfigs asynchronous. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, 54 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros,
55 const chromeos::Network* network) OVERRIDE; 55 const chromeos::Network* network) OVERRIDE;
56 56
57 // Initiate online status change reporting. 57 // Initiate online status change reporting.
58 void ReportConnectionChange(); 58 void ReportConnectionChange();
59 void ReportConnectionChangeOnUIThread(); 59 void ReportConnectionChangeOnUIThread();
60 // Callback from online_notification_task_ when online state notification 60 // Callback from online_notification_task_ when online state notification
61 // is actually scheduled. 61 // is actually scheduled.
62 void OnOnlineStateNotificationFired(); 62 void OnOnlineStateNotificationFired();
63 63
64 // Updates data members that keep the track the network stack state. 64 // Initiates an update of data members that keep the track the network stack
65 // state.
65 void UpdateNetworkState(chromeos::NetworkLibrary* cros); 66 void UpdateNetworkState(chromeos::NetworkLibrary* cros);
67 // Called when a network state update has completed. Updates data members that
68 // keep the track the network stack state.
69 void UpdateNetworkStateCallback(chromeos::NetworkLibrary* cros,
70 const NetworkIPConfigVector& ip_configs,
71 const std::string& hardware_address);
66 // Updates network connectivity state. 72 // Updates network connectivity state.
67 void UpdateConnectivityState(const chromeos::Network* network); 73 void UpdateConnectivityState(const chromeos::Network* network);
68 74
69 // Updates the initial state. Lets us trigger initial eval of the 75 // Updates the initial state. Lets us trigger initial eval of the
70 // connectivity status without waiting for an event from the connection 76 // connectivity status without waiting for an event from the connection
71 // manager. 77 // manager.
72 static void UpdateInitialState(NetworkChangeNotifierChromeos* self); 78 static void UpdateInitialState(NetworkChangeNotifierChromeos* self);
73 79
74 // Gets connection type for given |network|. 80 // Gets connection type for given |network|.
75 static net::NetworkChangeNotifier::ConnectionType GetNetworkConnectionType( 81 static net::NetworkChangeNotifier::ConnectionType GetNetworkConnectionType(
(...skipping 13 matching lines...) Expand all
89 scoped_ptr<DnsConfigServiceChromeos> dns_config_service_; 95 scoped_ptr<DnsConfigServiceChromeos> dns_config_service_;
90 96
91 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; 97 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_;
92 98
93 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); 99 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos);
94 }; 100 };
95 101
96 } // namespace chromeos 102 } // namespace chromeos
97 103
98 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 104 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698