OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Called when the user first interacts with the page after a load. This is a | 66 // Called when the user first interacts with the page after a load. This is a |
67 // signal to make autofilled values of password input elements accessible to | 67 // signal to make autofilled values of password input elements accessible to |
68 // JavaScript. | 68 // JavaScript. |
69 void FirstUserGestureObserved(); | 69 void FirstUserGestureObserved(); |
70 | 70 |
71 protected: | 71 protected: |
72 virtual bool OriginCanAccessPasswordManager( | 72 virtual bool OriginCanAccessPasswordManager( |
73 const blink::WebSecurityOrigin& origin); | 73 const blink::WebSecurityOrigin& origin); |
74 | 74 |
75 private: | 75 private: |
76 friend class PasswordAutofillAgentTest; | |
77 | |
78 enum OtherPossibleUsernamesUsage { | 76 enum OtherPossibleUsernamesUsage { |
79 NOTHING_TO_AUTOFILL, | 77 NOTHING_TO_AUTOFILL, |
80 OTHER_POSSIBLE_USERNAMES_ABSENT, | 78 OTHER_POSSIBLE_USERNAMES_ABSENT, |
81 OTHER_POSSIBLE_USERNAMES_PRESENT, | 79 OTHER_POSSIBLE_USERNAMES_PRESENT, |
82 OTHER_POSSIBLE_USERNAME_SHOWN, | 80 OTHER_POSSIBLE_USERNAME_SHOWN, |
83 OTHER_POSSIBLE_USERNAME_SELECTED, | 81 OTHER_POSSIBLE_USERNAME_SELECTED, |
84 OTHER_POSSIBLE_USERNAMES_MAX | 82 OTHER_POSSIBLE_USERNAMES_MAX |
85 }; | 83 }; |
86 | 84 |
87 // Ways to restrict which passwords are saved in ProvisionallySavePassword. | 85 // Ways to restrict which passwords are saved in ProvisionallySavePassword. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 bool did_stop_loading_; | 243 bool did_stop_loading_; |
246 | 244 |
247 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 245 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
248 | 246 |
249 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 247 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
250 }; | 248 }; |
251 | 249 |
252 } // namespace autofill | 250 } // namespace autofill |
253 | 251 |
254 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 252 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
OLD | NEW |