| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_PASSWORD_FORM_H__ | 5 #ifndef WEBKIT_GLUE_PASSWORD_FORM_H__ |
| 6 #define WEBKIT_GLUE_PASSWORD_FORM_H__ | 6 #define WEBKIT_GLUE_PASSWORD_FORM_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // entry to the database and how they can affect the matching process. | 37 // entry to the database and how they can affect the matching process. |
| 38 | 38 |
| 39 struct PasswordForm { | 39 struct PasswordForm { |
| 40 // Enum to differentiate between HTML form based authentication, and dialogs | 40 // Enum to differentiate between HTML form based authentication, and dialogs |
| 41 // using basic or digest schemes. Default is SCHEME_HTML. Only PasswordForms | 41 // using basic or digest schemes. Default is SCHEME_HTML. Only PasswordForms |
| 42 // of the same Scheme will be matched/autofilled against each other. | 42 // of the same Scheme will be matched/autofilled against each other. |
| 43 enum Scheme { | 43 enum Scheme { |
| 44 SCHEME_HTML, | 44 SCHEME_HTML, |
| 45 SCHEME_BASIC, | 45 SCHEME_BASIC, |
| 46 SCHEME_DIGEST, | 46 SCHEME_DIGEST, |
| 47 SCHEME_TLS_SRP, |
| 47 SCHEME_OTHER | 48 SCHEME_OTHER |
| 48 } scheme; | 49 } scheme; |
| 49 | 50 |
| 50 // The "Realm" for the sign-on (scheme, host, port for SCHEME_HTML, and | 51 // The "Realm" for the sign-on (scheme, host, port for SCHEME_HTML, and |
| 51 // contains the HTTP realm for dialog-based forms). | 52 // contains the HTTP realm for dialog-based forms). |
| 52 // The signon_realm is effectively the primary key used for retrieving | 53 // The signon_realm is effectively the primary key used for retrieving |
| 53 // data from the database, so it must not be empty. | 54 // data from the database, so it must not be empty. |
| 54 std::string signon_realm; | 55 std::string signon_realm; |
| 55 | 56 |
| 56 // The URL (minus query parameters) containing the form. This is the primary | 57 // The URL (minus query parameters) containing the form. This is the primary |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 PasswordForm(const WebKit::WebPasswordFormData& web_password_form); | 140 PasswordForm(const WebKit::WebPasswordFormData& web_password_form); |
| 140 ~PasswordForm(); | 141 ~PasswordForm(); |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 // Map username to PasswordForm* for convenience. See password_form_manager.h. | 144 // Map username to PasswordForm* for convenience. See password_form_manager.h. |
| 144 typedef std::map<string16, PasswordForm*> PasswordFormMap; | 145 typedef std::map<string16, PasswordForm*> PasswordFormMap; |
| 145 | 146 |
| 146 } // namespace webkit_glue | 147 } // namespace webkit_glue |
| 147 | 148 |
| 148 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ | 149 #endif // WEBKIT_GLUE_PASSWORD_FORM_H__ |
| OLD | NEW |