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

Side by Side Diff: chromeos/network/network_state_handler_observer.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_OBSERVER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chromeos/chromeos_export.h" 12 #include "chromeos/chromeos_export.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class DeviceState;
16 class NetworkState; 17 class NetworkState;
17 18
18 // Observer class for all network state changes, including changes to 19 // Observer class for all network state changes, including changes to
19 // active (connecting or connected) services. 20 // active (connecting or connected) services.
20 class CHROMEOS_EXPORT NetworkStateHandlerObserver { 21 class CHROMEOS_EXPORT NetworkStateHandlerObserver {
21 public: 22 public:
22 NetworkStateHandlerObserver(); 23 NetworkStateHandlerObserver();
23 virtual ~NetworkStateHandlerObserver(); 24 virtual ~NetworkStateHandlerObserver();
24 25
25 // The list of networks changed. 26 // The list of networks changed.
(...skipping 11 matching lines...) Expand all
37 38
38 // The connection state of |network| changed. 39 // The connection state of |network| changed.
39 virtual void NetworkConnectionStateChanged(const NetworkState* network); 40 virtual void NetworkConnectionStateChanged(const NetworkState* network);
40 41
41 // One or more properties of |network| have been updated. Note: this will get 42 // One or more properties of |network| have been updated. Note: this will get
42 // called in *addition* to NetworkConnectionStateChanged() when the 43 // called in *addition* to NetworkConnectionStateChanged() when the
43 // connection state property changes. Use this to track properties like 44 // connection state property changes. Use this to track properties like
44 // wifi strength. 45 // wifi strength.
45 virtual void NetworkPropertiesUpdated(const NetworkState* network); 46 virtual void NetworkPropertiesUpdated(const NetworkState* network);
46 47
48 // One or more properties of |device| have been updated.
49 virtual void DevicePropertiesUpdated(const DeviceState* device);
50
47 // Called just before NetworkStateHandler is destroyed so that observers 51 // Called just before NetworkStateHandler is destroyed so that observers
48 // can safely stop observing. 52 // can safely stop observing.
49 virtual void IsShuttingDown(); 53 virtual void IsShuttingDown();
50 54
51 private: 55 private:
52 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); 56 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver);
53 }; 57 };
54 58
55 } // namespace chromeos 59 } // namespace chromeos
56 60
57 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ 61 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698