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

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

Issue 14134007: NetworkPortalDetector/NetworkStateInformer: Switch over to use NetworkStateHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/shill_service_client_stub.cc ('k') | chromeos/network/network_state.cc » ('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_NETWORK_STATE_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_ 6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 void GetProperties(base::DictionaryValue* dictionary) const; 38 void GetProperties(base::DictionaryValue* dictionary) const;
39 39
40 // Accessors 40 // Accessors
41 const std::string& security() const { return security_; } 41 const std::string& security() const { return security_; }
42 const std::string& ip_address() const { return ip_address_; } 42 const std::string& ip_address() const { return ip_address_; }
43 const std::vector<std::string>& dns_servers() const { return dns_servers_; } 43 const std::vector<std::string>& dns_servers() const { return dns_servers_; }
44 const std::string& device_path() const { return device_path_; } 44 const std::string& device_path() const { return device_path_; }
45 const std::string& guid() const { return guid_; } 45 const std::string& guid() const { return guid_; }
46 const std::string& connection_state() const { return connection_state_; } 46 const std::string& connection_state() const { return connection_state_; }
47 const std::string& profile_path() const { return profile_path_; } 47 const std::string& profile_path() const { return profile_path_; }
48 const std::string& proxy_config() const { return proxy_config_; }
48 const std::string& error() const { return error_; } 49 const std::string& error() const { return error_; }
49 bool auto_connect() const { return auto_connect_; } 50 bool auto_connect() const { return auto_connect_; }
50 bool favorite() const { return favorite_; } 51 bool favorite() const { return favorite_; }
51 int priority() const { return priority_; } 52 int priority() const { return priority_; }
52 // Wireless property accessors 53 // Wireless property accessors
53 int signal_strength() const { return signal_strength_; } 54 int signal_strength() const { return signal_strength_; }
54 bool connectable() const { return connectable_; } 55 bool connectable() const { return connectable_; }
55 // Wifi property accessors 56 // Wifi property accessors
56 bool passphrase_required() const { return passphrase_required_; } 57 bool passphrase_required() const { return passphrase_required_; }
57 // Cellular property accessors 58 // Cellular property accessors
(...skipping 30 matching lines...) Expand all
88 void set_dns_servers(const std::vector<std::string>& dns_servers) { 89 void set_dns_servers(const std::vector<std::string>& dns_servers) {
89 dns_servers_ = dns_servers; 90 dns_servers_ = dns_servers;
90 } 91 }
91 92
92 // Common Network Service properties 93 // Common Network Service properties
93 std::string security_; 94 std::string security_;
94 std::string device_path_; 95 std::string device_path_;
95 std::string guid_; 96 std::string guid_;
96 std::string connection_state_; 97 std::string connection_state_;
97 std::string profile_path_; 98 std::string profile_path_;
99 std::string proxy_config_;
98 std::string error_; 100 std::string error_;
99 bool auto_connect_; 101 bool auto_connect_;
100 bool favorite_; 102 bool favorite_;
101 int priority_; 103 int priority_;
102 // IPConfig properties. 104 // IPConfig properties.
103 // Note: These do not correspond to actual Shill.Service properties 105 // Note: These do not correspond to actual Shill.Service properties
104 // but are derived from the service's corresponding IPConfig object. 106 // but are derived from the service's corresponding IPConfig object.
105 std::string ip_address_; 107 std::string ip_address_;
106 std::vector<std::string> dns_servers_; 108 std::vector<std::string> dns_servers_;
107 // Wireless properties 109 // Wireless properties
108 int signal_strength_; 110 int signal_strength_;
109 bool connectable_; 111 bool connectable_;
110 // Wifi properties 112 // Wifi properties
111 std::string hex_ssid_; 113 std::string hex_ssid_;
112 std::string country_code_; 114 std::string country_code_;
113 bool passphrase_required_; 115 bool passphrase_required_;
114 // Cellular properties 116 // Cellular properties
115 std::string technology_; 117 std::string technology_;
116 std::string activation_state_; 118 std::string activation_state_;
117 std::string roaming_; 119 std::string roaming_;
118 bool activate_over_non_cellular_networks_; 120 bool activate_over_non_cellular_networks_;
119 bool cellular_out_of_credits_; 121 bool cellular_out_of_credits_;
120 122
121 DISALLOW_COPY_AND_ASSIGN(NetworkState); 123 DISALLOW_COPY_AND_ASSIGN(NetworkState);
122 }; 124 };
123 125
124 } // namespace chromeos 126 } // namespace chromeos
125 127
126 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ 128 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_service_client_stub.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698