| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 PassphraseTextfield* textfield) const; | 99 PassphraseTextfield* textfield) const; |
| 100 | 100 |
| 101 // Convenience methods to get text from input field or cached VirtualNetwork. | 101 // Convenience methods to get text from input field or cached VirtualNetwork. |
| 102 const std::string GetService() const; | 102 const std::string GetService() const; |
| 103 const std::string GetServer() const; | 103 const std::string GetServer() const; |
| 104 const std::string GetPSKPassphrase() const; | 104 const std::string GetPSKPassphrase() const; |
| 105 const std::string GetUsername() const; | 105 const std::string GetUsername() const; |
| 106 const std::string GetUserPassphrase() const; | 106 const std::string GetUserPassphrase() const; |
| 107 const std::string GetOTP() const; | 107 const std::string GetOTP() const; |
| 108 const std::string GetGroupName() const; | 108 const std::string GetGroupName() const; |
| 109 const std::string GetServerCACertNssNickname() const; | 109 const std::string GetServerCACertFingerprint() const; |
| 110 const std::string GetUserCertID() const; | 110 const std::string GetUserCertID() const; |
| 111 bool GetSaveCredentials() const; | 111 bool GetSaveCredentials() const; |
| 112 | 112 |
| 113 // Parses a VPN UI |property| from the given |network|. |key| is the property | 113 // Parses a VPN UI |property| from the given |network|. |key| is the property |
| 114 // name within the type-specific VPN subdictionary named |dict_key|. | 114 // name within the type-specific VPN subdictionary named |dict_key|. |
| 115 void ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data, | 115 void ParseVPNUIProperty(NetworkPropertyUIData* property_ui_data, |
| 116 Network* network, | 116 Network* network, |
| 117 const std::string& dict_key, | 117 const std::string& dict_key, |
| 118 const std::string& key); | 118 const std::string& key); |
| 119 | 119 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 views::Textfield* group_name_textfield_; | 164 views::Textfield* group_name_textfield_; |
| 165 views::Checkbox* save_credentials_checkbox_; | 165 views::Checkbox* save_credentials_checkbox_; |
| 166 views::Label* error_label_; | 166 views::Label* error_label_; |
| 167 | 167 |
| 168 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); | 168 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); |
| 169 }; | 169 }; |
| 170 | 170 |
| 171 } // namespace chromeos | 171 } // namespace chromeos |
| 172 | 172 |
| 173 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 173 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
| OLD | NEW |