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

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

Issue 11192024: Add chromeos::NetworkStateManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate out NetworkStateHandlerImpl, address feedback 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/basictypes.h"
12 #include "chromeos/chromeos_export.h"
13
14 namespace chromeos {
15
16 class NetworkState;
17
18 // Observer class for all network state changes, including changes to
19 // active (connecting or connected) services.
20 class CHROMEOS_EXPORT NetworkStateHandlerObserver {
21 public:
22 typedef std::vector<const NetworkState*> NetworkStateList;
23
24 NetworkStateHandlerObserver();
25 virtual ~NetworkStateHandlerObserver();
26
27 // If |property| is non empty then that property has changed. Otherwise
28 // we received a complete update so multiple properties may have changed.
29 virtual void NetworkManagerChanged();
30
31 // The list of networks changed.
32 virtual void NetworkListChanged(const NetworkStateList& networks);
33
34 // The active network changed. |network| will be NULL if there is no longer
35 // an active network.
36 virtual void ActiveNetworkChanged(const NetworkState* network);
37
38 // The state of the active network changed.
39 virtual void ActiveNetworkStateChanged(const NetworkState* network);
40
41 // One or more network service properties changed. Note: for the active
42 // network, this will be called in *addition* to ActiveNetworkStateChanged()
43 // if the state property changed.
44 virtual void NetworkServiceChanged(const NetworkState* network);
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver);
48 };
49
50 } // namespace chromeos
51
52 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698