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

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

Issue 1022333002: Initial CL for Data Saver (Flywheel) prompt when cellular network detected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
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 DeviceState;
17 class NetworkState; 17 class NetworkState;
18 18
19 const char kHotkeyDebugDataSaver[] = "hotkey-debug-datasaver";
Daniel Erat 2015/03/23 03:49:21 please don't put constants in the toplevel chromeo
Greg Levin 2015/03/24 20:35:32 Done.
20
19 // Observer class for all network state changes, including changes to 21 // Observer class for all network state changes, including changes to
20 // active (connecting or connected) services. 22 // active (connecting or connected) services.
21 class CHROMEOS_EXPORT NetworkStateHandlerObserver { 23 class CHROMEOS_EXPORT NetworkStateHandlerObserver {
22 public: 24 public:
23 NetworkStateHandlerObserver(); 25 NetworkStateHandlerObserver();
24 virtual ~NetworkStateHandlerObserver(); 26 virtual ~NetworkStateHandlerObserver();
25 27
26 // The list of networks changed. 28 // The list of networks changed.
27 virtual void NetworkListChanged(); 29 virtual void NetworkListChanged();
28 30
(...skipping 26 matching lines...) Expand all
55 // can safely stop observing. 57 // can safely stop observing.
56 virtual void IsShuttingDown(); 58 virtual void IsShuttingDown();
57 59
58 private: 60 private:
59 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver); 61 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandlerObserver);
60 }; 62 };
61 63
62 } // namespace chromeos 64 } // namespace chromeos
63 65
64 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_ 66 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698