| 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_GENERATION_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/linked_ptr.h" | 16 #include "base/memory/linked_ptr.h" |
| 17 #include "components/autofill/content/common/autofill_agent.mojom.h" | 17 #include "components/autofill/content/common/autofill_agent.mojom.h" |
| 18 #include "components/autofill/content/common/autofill_driver.mojom.h" | 18 #include "components/autofill/content/common/autofill_driver.mojom.h" |
| 19 #include "content/public/renderer/render_frame_observer.h" | 19 #include "content/public/renderer/render_frame_observer.h" |
| 20 #include "mojo/public/cpp/bindings/binding.h" | 20 #include "mojo/public/cpp/bindings/binding.h" |
| 21 #include "third_party/WebKit/public/web/WebInputElement.h" | 21 #include "third_party/WebKit/public/web/WebInputElement.h" |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 namespace blink { | |
| 25 class WebDocument; | |
| 26 } | |
| 27 | |
| 28 namespace autofill { | 24 namespace autofill { |
| 29 | 25 |
| 30 struct FormData; | |
| 31 struct PasswordForm; | 26 struct PasswordForm; |
| 32 struct PasswordFormGenerationData; | 27 struct PasswordFormGenerationData; |
| 33 class PasswordAutofillAgent; | 28 class PasswordAutofillAgent; |
| 34 | 29 |
| 35 // This class is responsible for controlling communication for password | 30 // This class is responsible for controlling communication for password |
| 36 // generation between the browser (which shows the popup and generates | 31 // generation between the browser (which shows the popup and generates |
| 37 // passwords) and WebKit (shows the generation icon in the password field). | 32 // passwords) and WebKit (shows the generation icon in the password field). |
| 38 class PasswordGenerationAgent : public content::RenderFrameObserver, | 33 class PasswordGenerationAgent : public content::RenderFrameObserver, |
| 39 public mojom::PasswordGenerationAgent { | 34 public mojom::PasswordGenerationAgent { |
| 40 public: | 35 public: |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 mojom::PasswordManagerClientAssociatedPtr password_manager_client_; | 182 mojom::PasswordManagerClientAssociatedPtr password_manager_client_; |
| 188 | 183 |
| 189 mojo::Binding<mojom::PasswordGenerationAgent> binding_; | 184 mojo::Binding<mojom::PasswordGenerationAgent> binding_; |
| 190 | 185 |
| 191 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); | 186 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationAgent); |
| 192 }; | 187 }; |
| 193 | 188 |
| 194 } // namespace autofill | 189 } // namespace autofill |
| 195 | 190 |
| 196 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ | 191 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_PASSWORD_GENERATION_AGENT_H_ |
| OLD | NEW |