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

Side by Side Diff: chromeos/network/device_state.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_DEVICE_STATE_H_
6 #define CHROMEOS_NETWORK_DEVICE_STATE_H_
7
8 #include "chromeos/network/managed_state.h"
9
10 namespace chromeos {
11
12 // Simple class to provide device state information. Similar to NetworkState;
13 // see network_state.h for usage guidelines.
14 class CHROMEOS_EXPORT DeviceState : public ManagedState {
15 public:
16 explicit DeviceState(const std::string& path);
17
18 // ManagedState overrides
19 virtual bool PropertyChanged(const std::string& key,
20 const base::Value& value) OVERRIDE;
21
22 // Accessors
23 const std::string& mac_address() const { return mac_address_; }
24 bool always_in_roaming() const { return always_in_roaming_; }
25 bool support_network_scan() const { return support_network_scan_; }
26
27 private:
28 // Common Device Properties
29 std::string mac_address_;
30 // Cellular specific propeties
31 std::string home_provider_id_;
32 bool always_in_roaming_;
gauravsh 2012/10/27 00:26:33 Still no comment on what this tracks.
stevenjb 2012/10/29 18:34:07 Renamed to match shill property name.
33 bool support_network_scan_;
34
35 DISALLOW_COPY_AND_ASSIGN(DeviceState);
36 };
37
38 } // namespace chromeos
39
40 #endif // CHROMEOS_NETWORK_DEVICE_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698