| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Called when the user first interacts with the page after a load. This is a | 58 // Called when the user first interacts with the page after a load. This is a |
| 59 // signal to make autofilled values of password input elements accessible to | 59 // signal to make autofilled values of password input elements accessible to |
| 60 // JavaScript. | 60 // JavaScript. |
| 61 void FirstUserGestureObserved(); | 61 void FirstUserGestureObserved(); |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 virtual bool OriginCanAccessPasswordManager( | 64 virtual bool OriginCanAccessPasswordManager( |
| 65 const blink::WebSecurityOrigin& origin); | 65 const blink::WebSecurityOrigin& origin); |
| 66 | 66 |
| 67 // Only for tests. |
| 68 bool logging_state_active() const { return logging_state_active_; } |
| 69 |
| 67 private: | 70 private: |
| 68 friend class PasswordAutofillAgentTest; | 71 friend class PasswordAutofillAgentTest; |
| 69 | 72 |
| 70 enum OtherPossibleUsernamesUsage { | 73 enum OtherPossibleUsernamesUsage { |
| 71 NOTHING_TO_AUTOFILL, | 74 NOTHING_TO_AUTOFILL, |
| 72 OTHER_POSSIBLE_USERNAMES_ABSENT, | 75 OTHER_POSSIBLE_USERNAMES_ABSENT, |
| 73 OTHER_POSSIBLE_USERNAMES_PRESENT, | 76 OTHER_POSSIBLE_USERNAMES_PRESENT, |
| 74 OTHER_POSSIBLE_USERNAME_SHOWN, | 77 OTHER_POSSIBLE_USERNAME_SHOWN, |
| 75 OTHER_POSSIBLE_USERNAME_SELECTED, | 78 OTHER_POSSIBLE_USERNAME_SELECTED, |
| 76 OTHER_POSSIBLE_USERNAMES_MAX | 79 OTHER_POSSIBLE_USERNAMES_MAX |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 bool logging_state_active_; | 203 bool logging_state_active_; |
| 201 | 204 |
| 202 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; | 205 base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
| 203 | 206 |
| 204 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); | 207 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 } // namespace autofill | 210 } // namespace autofill |
| 208 | 211 |
| 209 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ | 212 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_AUTOFILL_AGENT_H_ |
| OLD | NEW |