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

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

Issue 11469044: Implement new network change notifier that uses NetworkStateHandler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Move to net/base Created 8 years 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_MANAGED_STATE_H_ 5 #ifndef CHROMEOS_NETWORK_MANAGED_STATE_H_
6 #define CHROMEOS_NETWORK_MANAGED_STATE_H_ 6 #define CHROMEOS_NETWORK_MANAGED_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chromeos/chromeos_export.h" 12 #include "chromeos/chromeos_export.h"
13 13
14 namespace net {
15 class NetworkChangeNotifierChromeosUpdateTest;
16 }
17
14 namespace base { 18 namespace base {
15 class Value; 19 class Value;
16 } 20 }
17 21
18 namespace chromeos { 22 namespace chromeos {
19 23
20 class DeviceState; 24 class DeviceState;
21 class NetworkState; 25 class NetworkState;
22 26
23 // Base class for states managed by NetworkStateManger which are associated 27 // Base class for states managed by NetworkStateManger which are associated
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const base::Value& value, 68 const base::Value& value,
65 bool* out_value); 69 bool* out_value);
66 bool GetIntegerValue(const std::string& key, 70 bool GetIntegerValue(const std::string& key,
67 const base::Value& value, 71 const base::Value& value,
68 int* out_value); 72 int* out_value);
69 bool GetStringValue(const std::string& key, 73 bool GetStringValue(const std::string& key,
70 const base::Value& value, 74 const base::Value& value,
71 std::string* out_value); 75 std::string* out_value);
72 76
73 private: 77 private:
78 friend class net::NetworkChangeNotifierChromeosUpdateTest;
79
74 ManagedType managed_type_; 80 ManagedType managed_type_;
75 81
76 // The path (e.g. service path or device path) of the managed state object. 82 // The path (e.g. service path or device path) of the managed state object.
77 std::string path_; 83 std::string path_;
78 84
79 // Common properties shared by all managed state objects. 85 // Common properties shared by all managed state objects.
80 std::string name_; // flimflam::kNameProperty 86 std::string name_; // flimflam::kNameProperty
81 std::string type_; // flimflam::kTypeProperty 87 std::string type_; // flimflam::kTypeProperty
82 88
83 // Tracks when the state is being observed. 89 // Tracks when the state is being observed.
84 bool is_observed_; 90 bool is_observed_;
85 91
86 DISALLOW_COPY_AND_ASSIGN(ManagedState); 92 DISALLOW_COPY_AND_ASSIGN(ManagedState);
87 }; 93 };
88 94
89 } // namespace chromeos 95 } // namespace chromeos
90 96
91 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ 97 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698