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

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

Issue 16512003: Configure networks requiring a certificate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update error strings Created 7 years, 6 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/network/network_handler.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 17 matching lines...) Expand all
28 // If you change this method, update GetProperties too. 28 // If you change this method, update GetProperties too.
29 virtual bool PropertyChanged(const std::string& key, 29 virtual bool PropertyChanged(const std::string& key,
30 const base::Value& value) OVERRIDE; 30 const base::Value& value) OVERRIDE;
31 virtual void InitialPropertiesReceived() OVERRIDE; 31 virtual void InitialPropertiesReceived() OVERRIDE;
32 32
33 // Fills |dictionary| with the state properties. All the properties that are 33 // Fills |dictionary| with the state properties. All the properties that are
34 // accepted by PropertyChanged are stored in |dictionary|, no other values are 34 // accepted by PropertyChanged are stored in |dictionary|, no other values are
35 // stored. 35 // stored.
36 void GetProperties(base::DictionaryValue* dictionary) const; 36 void GetProperties(base::DictionaryValue* dictionary) const;
37 37
38 // Fills |dictionary| with the state properties required to configure a
39 // network.
40 void GetConfigProperties(base::DictionaryValue* dictionary) const;
41
38 // Accessors 42 // Accessors
39 const std::string& security() const { return security_; } 43 const std::string& security() const { return security_; }
40 const std::string& ip_address() const { return ip_address_; } 44 const std::string& ip_address() const { return ip_address_; }
41 const std::vector<std::string>& dns_servers() const { return dns_servers_; } 45 const std::vector<std::string>& dns_servers() const { return dns_servers_; }
42 const std::string& device_path() const { return device_path_; } 46 const std::string& device_path() const { return device_path_; }
43 const std::string& guid() const { return guid_; } 47 const std::string& guid() const { return guid_; }
44 const std::string& connection_state() const { return connection_state_; } 48 const std::string& connection_state() const { return connection_state_; }
45 const std::string& profile_path() const { return profile_path_; } 49 const std::string& profile_path() const { return profile_path_; }
46 const std::string& error() const { return error_; } 50 const std::string& error() const { return error_; }
47 const std::string& error_details() const { return error_details_; } 51 const std::string& error_details() const { return error_details_; }
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 std::string roaming_; 130 std::string roaming_;
127 bool activate_over_non_cellular_networks_; 131 bool activate_over_non_cellular_networks_;
128 bool cellular_out_of_credits_; 132 bool cellular_out_of_credits_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(NetworkState); 134 DISALLOW_COPY_AND_ASSIGN(NetworkState);
131 }; 135 };
132 136
133 } // namespace chromeos 137 } // namespace chromeos
134 138
135 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ 139 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_handler.cc ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698