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

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

Issue 395523004: Add DevicePropertiesUpdated to NetworkStateHandlerObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update for IPconfig(s) and add test Created 6 years, 5 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
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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 // Gets the list specified by |type|. 342 // Gets the list specified by |type|.
343 ManagedStateList* GetManagedList(ManagedState::ManagedType type); 343 ManagedStateList* GetManagedList(ManagedState::ManagedType type);
344 344
345 // Helper function to notify observers. Calls CheckDefaultNetworkChanged(). 345 // Helper function to notify observers. Calls CheckDefaultNetworkChanged().
346 void OnNetworkConnectionStateChanged(NetworkState* network); 346 void OnNetworkConnectionStateChanged(NetworkState* network);
347 347
348 // Notifies observers when the default network or its properties change. 348 // Notifies observers when the default network or its properties change.
349 void NotifyDefaultNetworkChanged(const NetworkState* default_network); 349 void NotifyDefaultNetworkChanged(const NetworkState* default_network);
350 350
351 // Notifies observers about changes to |network|. 351 // Notifies observers about changes to |network|, including IPConfg.
352 void NotifyNetworkPropertiesUpdated(const NetworkState* network); 352 void NotifyNetworkPropertiesUpdated(const NetworkState* network);
353 353
354 // Notifies observers about changes to |device|, including IPConfigs.
355 void NotifyDevicePropertiesUpdated(const DeviceState* device);
356
354 // Called whenever Device.Scanning state transitions to false. 357 // Called whenever Device.Scanning state transitions to false.
355 void ScanCompleted(const std::string& type); 358 void ScanCompleted(const std::string& type);
356 359
357 // Returns one technology type for |type|. This technology will be the 360 // Returns one technology type for |type|. This technology will be the
358 // highest priority technology in the type pattern. 361 // highest priority technology in the type pattern.
359 std::string GetTechnologyForType(const NetworkTypePattern& type) const; 362 std::string GetTechnologyForType(const NetworkTypePattern& type) const;
360 363
361 // Returns all the technology types for |type|. 364 // Returns all the technology types for |type|.
362 ScopedVector<std::string> GetTechnologiesForType( 365 ScopedVector<std::string> GetTechnologiesForType(
363 const NetworkTypePattern& type) const; 366 const NetworkTypePattern& type) const;
(...skipping 26 matching lines...) Expand all
390 // Map of network specifiers to guids. Contains an entry for each 393 // Map of network specifiers to guids. Contains an entry for each
391 // NetworkState that is not saved in a profile. 394 // NetworkState that is not saved in a profile.
392 SpecifierGuidMap specifier_guid_map_; 395 SpecifierGuidMap specifier_guid_map_;
393 396
394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); 397 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler);
395 }; 398 };
396 399
397 } // namespace chromeos 400 } // namespace chromeos
398 401
399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 402 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/network/network_state_handler.cc » ('j') | chromeos/network/network_state_handler_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698