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

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

Issue 1019033002: Add an ONC property for the third-party VPN provider extension ID (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed browser tests. Created 5 years, 9 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Cellular property accessors 86 // Cellular property accessors
87 const std::string& network_technology() const { 87 const std::string& network_technology() const {
88 return network_technology_; 88 return network_technology_;
89 } 89 }
90 const std::string& activation_type() const { return activation_type_; } 90 const std::string& activation_type() const { return activation_type_; }
91 const std::string& activation_state() const { return activation_state_; } 91 const std::string& activation_state() const { return activation_state_; }
92 const std::string& roaming() const { return roaming_; } 92 const std::string& roaming() const { return roaming_; }
93 const std::string& payment_url() const { return payment_url_; } 93 const std::string& payment_url() const { return payment_url_; }
94 bool cellular_out_of_credits() const { return cellular_out_of_credits_; } 94 bool cellular_out_of_credits() const { return cellular_out_of_credits_; }
95 const std::string& vpn_provider_extension_id() const { 95
96 return vpn_provider_extension_id_; 96 // VPN property accessors
97 const std::string& vpn_provider_type() const { return vpn_provider_type_; }
98 const std::string& third_party_vpn_provider_extension_id() const {
99 return third_party_vpn_provider_extension_id_;
97 } 100 }
98 101
99 // Returns true if |connection_state_| is a connected/connecting state. 102 // Returns true if |connection_state_| is a connected/connecting state.
100 bool IsConnectedState() const; 103 bool IsConnectedState() const;
101 bool IsConnectingState() const; 104 bool IsConnectingState() const;
102 105
103 // Returns true if this is a network stored in a profile. 106 // Returns true if this is a network stored in a profile.
104 bool IsInProfile() const; 107 bool IsInProfile() const;
105 108
106 // Returns true if the network properties are stored in a user profile. 109 // Returns true if the network properties are stored in a user profile.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 int signal_strength_; 179 int signal_strength_;
177 180
178 // Cellular properties, used for icons, Connect, and Activation. 181 // Cellular properties, used for icons, Connect, and Activation.
179 std::string network_technology_; 182 std::string network_technology_;
180 std::string activation_type_; 183 std::string activation_type_;
181 std::string activation_state_; 184 std::string activation_state_;
182 std::string roaming_; 185 std::string roaming_;
183 std::string payment_url_; 186 std::string payment_url_;
184 bool cellular_out_of_credits_; 187 bool cellular_out_of_credits_;
185 188
186 // VPN property. For networks using a third-party VPN provider, this will be 189 // VPN properties, used to construct the display name and to show the correct
187 // the provider's extension ID. For networks using the built-in OpenVPN and 190 // configuration dialog.
188 // L2TP support, this will be an empty string. 191 std::string vpn_provider_type_;
189 std::string vpn_provider_extension_id_; 192 std::string third_party_vpn_provider_extension_id_;
190 193
191 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler 194 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler
192 // provides proxy configuration. crbug.com/241775 195 // provides proxy configuration. crbug.com/241775
193 base::DictionaryValue proxy_config_; 196 base::DictionaryValue proxy_config_;
194 197
195 DISALLOW_COPY_AND_ASSIGN(NetworkState); 198 DISALLOW_COPY_AND_ASSIGN(NetworkState);
196 }; 199 };
197 200
198 } // namespace chromeos 201 } // namespace chromeos
199 202
200 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ 203 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/networking_private/chromeos/test.js ('k') | chromeos/network/network_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698