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

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: Fix clang warning (missing virtual on OVERRIDE) 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/network_change_notifier_chromeos.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const base::Value& value, 64 const base::Value& value,
65 bool* out_value); 65 bool* out_value);
66 bool GetIntegerValue(const std::string& key, 66 bool GetIntegerValue(const std::string& key,
67 const base::Value& value, 67 const base::Value& value,
68 int* out_value); 68 int* out_value);
69 bool GetStringValue(const std::string& key, 69 bool GetStringValue(const std::string& key,
70 const base::Value& value, 70 const base::Value& value,
71 std::string* out_value); 71 std::string* out_value);
72 72
73 private: 73 private:
74 friend class NetworkChangeNotifierChromeosUpdateTest;
75
74 ManagedType managed_type_; 76 ManagedType managed_type_;
75 77
76 // The path (e.g. service path or device path) of the managed state object. 78 // The path (e.g. service path or device path) of the managed state object.
77 std::string path_; 79 std::string path_;
78 80
79 // Common properties shared by all managed state objects. 81 // Common properties shared by all managed state objects.
80 std::string name_; // flimflam::kNameProperty 82 std::string name_; // flimflam::kNameProperty
81 std::string type_; // flimflam::kTypeProperty 83 std::string type_; // flimflam::kTypeProperty
82 84
83 // Tracks when the state is being observed. 85 // Tracks when the state is being observed.
84 bool is_observed_; 86 bool is_observed_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(ManagedState); 88 DISALLOW_COPY_AND_ASSIGN(ManagedState);
87 }; 89 };
88 90
89 } // namespace chromeos 91 } // namespace chromeos
90 92
91 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ 93 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/network_change_notifier_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698