OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // Update state of the Login button. | 62 // Update state of the Login button. |
63 void UpdateCanLogin(); | 63 void UpdateCanLogin(); |
64 | 64 |
65 // Update the error text label. | 65 // Update the error text label. |
66 void UpdateErrorLabel(); | 66 void UpdateErrorLabel(); |
67 | 67 |
68 // Returns true if the provider type requires a user certificate. | 68 // Returns true if the provider type requires a user certificate. |
69 bool UserCertRequired() const; | 69 bool UserCertRequired() const; |
70 | 70 |
| 71 // Returns true if there is at least one user certificate installed. |
| 72 bool HaveUserCerts() const; |
| 73 |
71 // Get text from input field. | 74 // Get text from input field. |
72 const std::string GetTextFromField(views::Textfield* textfield, | 75 const std::string GetTextFromField(views::Textfield* textfield, |
73 bool trim_whitespace) const; | 76 bool trim_whitespace) const; |
74 | 77 |
75 // Convenience methods to get text from input field or cached VirtualNetwork. | 78 // Convenience methods to get text from input field or cached VirtualNetwork. |
76 const std::string GetService() const; | 79 const std::string GetService() const; |
77 const std::string GetServer() const; | 80 const std::string GetServer() const; |
78 const std::string GetPSKPassphrase() const; | 81 const std::string GetPSKPassphrase() const; |
79 const std::string GetUsername() const; | 82 const std::string GetUsername() const; |
80 const std::string GetUserPassphrase() const; | 83 const std::string GetUserPassphrase() const; |
(...skipping 17 matching lines...) Expand all Loading... |
98 views::Textfield* username_textfield_; | 101 views::Textfield* username_textfield_; |
99 views::Textfield* user_passphrase_textfield_; | 102 views::Textfield* user_passphrase_textfield_; |
100 views::Label* error_label_; | 103 views::Label* error_label_; |
101 | 104 |
102 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); | 105 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); |
103 }; | 106 }; |
104 | 107 |
105 } // namespace chromeos | 108 } // namespace chromeos |
106 | 109 |
107 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
OLD | NEW |