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

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: Add localized Auth error messages 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
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 16 matching lines...) Expand all
27 // If you change this method, update GetProperties too. 27 // If you change this method, update GetProperties too.
28 virtual bool PropertyChanged(const std::string& key, 28 virtual bool PropertyChanged(const std::string& key,
29 const base::Value& value) OVERRIDE; 29 const base::Value& value) OVERRIDE;
30 virtual void InitialPropertiesReceived() OVERRIDE; 30 virtual void InitialPropertiesReceived() OVERRIDE;
31 31
32 // Fills |dictionary| with the state properties. All the properties that are 32 // Fills |dictionary| with the state properties. All the properties that are
33 // accepted by PropertyChanged are stored in |dictionary|, no other values are 33 // accepted by PropertyChanged are stored in |dictionary|, no other values are
34 // stored. 34 // stored.
35 void GetProperties(base::DictionaryValue* dictionary) const; 35 void GetProperties(base::DictionaryValue* dictionary) const;
36 36
37 // Fills |dictionary| with the state properties required to configure a
38 // network.
39 void GetConfigProperties(base::DictionaryValue* dictionary) const;
40
37 // Accessors 41 // Accessors
38 const std::string& security() const { return security_; } 42 const std::string& security() const { return security_; }
39 const std::string& ip_address() const { return ip_address_; } 43 const std::string& ip_address() const { return ip_address_; }
40 const std::vector<std::string>& dns_servers() const { return dns_servers_; } 44 const std::vector<std::string>& dns_servers() const { return dns_servers_; }
41 const std::string& device_path() const { return device_path_; } 45 const std::string& device_path() const { return device_path_; }
42 const std::string& guid() const { return guid_; } 46 const std::string& guid() const { return guid_; }
43 const std::string& connection_state() const { return connection_state_; } 47 const std::string& connection_state() const { return connection_state_; }
44 const std::string& profile_path() const { return profile_path_; } 48 const std::string& profile_path() const { return profile_path_; }
45 const std::string& error() const { return error_; } 49 const std::string& error() const { return error_; }
46 const std::string& error_details() const { return error_details_; } 50 const std::string& error_details() const { return error_details_; }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 std::string roaming_; 127 std::string roaming_;
124 bool activate_over_non_cellular_networks_; 128 bool activate_over_non_cellular_networks_;
125 bool cellular_out_of_credits_; 129 bool cellular_out_of_credits_;
126 130
127 DISALLOW_COPY_AND_ASSIGN(NetworkState); 131 DISALLOW_COPY_AND_ASSIGN(NetworkState);
128 }; 132 };
129 133
130 } // namespace chromeos 134 } // namespace chromeos
131 135
132 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ 136 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698