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_AUTOFILL_AGENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 6 #define COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "components/autofill/content/common/autofill_agent.mojom.h" | 16 #include "components/autofill/content/common/autofill_agent.mojom.h" |
17 #include "components/autofill/content/common/autofill_driver.mojom.h" | 17 #include "components/autofill/content/common/autofill_driver.mojom.h" |
18 #include "components/autofill/content/renderer/form_cache.h" | 18 #include "components/autofill/content/renderer/form_cache.h" |
19 #include "components/autofill/content/renderer/page_click_listener.h" | 19 #include "components/autofill/content/renderer/page_click_listener.h" |
20 #include "components/autofill/content/renderer/page_click_tracker.h" | 20 #include "components/autofill/content/renderer/page_click_tracker.h" |
21 #include "content/public/renderer/render_frame_observer.h" | 21 #include "content/public/renderer/render_frame_observer.h" |
22 #include "mojo/public/cpp/bindings/binding.h" | 22 #include "mojo/public/cpp/bindings/binding.h" |
| 23 #include "services/service_manager/public/cpp/bind_source_info.h" |
23 #include "third_party/WebKit/public/web/WebAutofillClient.h" | 24 #include "third_party/WebKit/public/web/WebAutofillClient.h" |
24 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 25 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
25 #include "third_party/WebKit/public/web/WebFormElement.h" | 26 #include "third_party/WebKit/public/web/WebFormElement.h" |
26 #include "third_party/WebKit/public/web/WebInputElement.h" | 27 #include "third_party/WebKit/public/web/WebInputElement.h" |
27 | 28 |
28 namespace blink { | 29 namespace blink { |
29 class WebNode; | 30 class WebNode; |
30 class WebView; | 31 class WebView; |
31 } | 32 } |
32 | 33 |
(...skipping 18 matching lines...) Expand all Loading... |
51 public mojom::AutofillAgent { | 52 public mojom::AutofillAgent { |
52 public: | 53 public: |
53 // PasswordAutofillAgent is guaranteed to outlive AutofillAgent. | 54 // PasswordAutofillAgent is guaranteed to outlive AutofillAgent. |
54 // PasswordGenerationAgent may be NULL. If it is not, then it is also | 55 // PasswordGenerationAgent may be NULL. If it is not, then it is also |
55 // guaranteed to outlive AutofillAgent. | 56 // guaranteed to outlive AutofillAgent. |
56 AutofillAgent(content::RenderFrame* render_frame, | 57 AutofillAgent(content::RenderFrame* render_frame, |
57 PasswordAutofillAgent* password_autofill_manager, | 58 PasswordAutofillAgent* password_autofill_manager, |
58 PasswordGenerationAgent* password_generation_agent); | 59 PasswordGenerationAgent* password_generation_agent); |
59 ~AutofillAgent() override; | 60 ~AutofillAgent() override; |
60 | 61 |
61 void BindRequest(mojom::AutofillAgentRequest request); | 62 void BindRequest(const service_manager::BindSourceInfo& source_info, |
| 63 mojom::AutofillAgentRequest request); |
62 | 64 |
63 const mojom::AutofillDriverPtr& GetAutofillDriver(); | 65 const mojom::AutofillDriverPtr& GetAutofillDriver(); |
64 | 66 |
65 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); | 67 const mojom::PasswordManagerDriverPtr& GetPasswordManagerDriver(); |
66 | 68 |
67 // mojom::AutofillAgent: | 69 // mojom::AutofillAgent: |
68 void FillForm(int32_t id, const FormData& form) override; | 70 void FillForm(int32_t id, const FormData& form) override; |
69 void PreviewForm(int32_t id, const FormData& form) override; | 71 void PreviewForm(int32_t id, const FormData& form) override; |
70 void FieldTypePredictionsAvailable( | 72 void FieldTypePredictionsAvailable( |
71 const std::vector<FormDataPredictions>& forms) override; | 73 const std::vector<FormDataPredictions>& forms) override; |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 mojom::AutofillDriverPtr autofill_driver_; | 285 mojom::AutofillDriverPtr autofill_driver_; |
284 | 286 |
285 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; | 287 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; |
286 | 288 |
287 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); | 289 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); |
288 }; | 290 }; |
289 | 291 |
290 } // namespace autofill | 292 } // namespace autofill |
291 | 293 |
292 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ | 294 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ |
OLD | NEW |