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

Side by Side Diff: chromeos/network/network_state_handler.h

Issue 14134007: NetworkPortalDetector/NetworkStateInformer: Switch over to use NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove last reference to lastNetworkType Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/network/network_state.cc ('k') | no next file » | 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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual void ManagedStateListChanged( 215 virtual void ManagedStateListChanged(
216 ManagedState::ManagedType type) OVERRIDE; 216 ManagedState::ManagedType type) OVERRIDE;
217 217
218 // Called in Initialize(). Called explicitly by tests after adding 218 // Called in Initialize(). Called explicitly by tests after adding
219 // test observers. 219 // test observers.
220 void InitShillPropertyHandler(); 220 void InitShillPropertyHandler();
221 221
222 private: 222 private:
223 typedef std::list<base::Closure> ScanCallbackList; 223 typedef std::list<base::Closure> ScanCallbackList;
224 typedef std::map<std::string, ScanCallbackList> ScanCompleteCallbackMap; 224 typedef std::map<std::string, ScanCallbackList> ScanCompleteCallbackMap;
225 friend class NetworkPortalDetectorImplTest;
pneubeck (no reviews) 2013/05/08 18:41:39 not needed anymore.
gauravsh 2013/05/08 20:07:03 Done.
225 friend class NetworkStateHandlerTest; 226 friend class NetworkStateHandlerTest;
226 FRIEND_TEST_ALL_PREFIXES(NetworkStateHandlerTest, NetworkStateHandlerStub); 227 FRIEND_TEST_ALL_PREFIXES(NetworkStateHandlerTest, NetworkStateHandlerStub);
227 228
228 // Non-const getters for managed entries. These are const so that they can 229 // Non-const getters for managed entries. These are const so that they can
229 // be called by Get[Network|Device]State, even though they return non-const 230 // be called by Get[Network|Device]State, even though they return non-const
230 // pointers. 231 // pointers.
231 DeviceState* GetModifiableDeviceState(const std::string& device_path) const; 232 DeviceState* GetModifiableDeviceState(const std::string& device_path) const;
232 NetworkState* GetModifiableNetworkState( 233 NetworkState* GetModifiableNetworkState(
233 const std::string& service_path) const; 234 const std::string& service_path) const;
234 ManagedState* GetModifiableManagedState(const ManagedStateList* managed_list, 235 ManagedState* GetModifiableManagedState(const ManagedStateList* managed_list,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 278
278 // Callbacks to run when a scan for the technology type completes. 279 // Callbacks to run when a scan for the technology type completes.
279 ScanCompleteCallbackMap scan_complete_callbacks_; 280 ScanCompleteCallbackMap scan_complete_callbacks_;
280 281
281 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); 282 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler);
282 }; 283 };
283 284
284 } // namespace chromeos 285 } // namespace chromeos
285 286
286 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 287 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698