Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: components/autofill/content/renderer/autofill_agent.h

Issue 2180093002: [Autofill] Switch on use_new_wrapper_types mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/time/time.h" 15 #include "base/time/time.h"
15 #include "components/autofill/content/public/interfaces/autofill_agent.mojom.h" 16 #include "components/autofill/content/public/interfaces/autofill_agent.mojom.h"
16 #include "components/autofill/content/public/interfaces/autofill_driver.mojom.h" 17 #include "components/autofill/content/public/interfaces/autofill_driver.mojom.h"
17 #include "components/autofill/content/renderer/form_cache.h" 18 #include "components/autofill/content/renderer/form_cache.h"
18 #include "components/autofill/content/renderer/page_click_listener.h" 19 #include "components/autofill/content/renderer/page_click_listener.h"
19 #include "content/public/renderer/render_frame_observer.h" 20 #include "content/public/renderer/render_frame_observer.h"
20 #include "content/public/renderer/render_view_observer.h" 21 #include "content/public/renderer/render_view_observer.h"
21 #include "mojo/public/cpp/bindings/binding.h" 22 #include "mojo/public/cpp/bindings/binding.h"
22 #include "third_party/WebKit/public/web/WebAutofillClient.h" 23 #include "third_party/WebKit/public/web/WebAutofillClient.h"
23 #include "third_party/WebKit/public/web/WebFormControlElement.h" 24 #include "third_party/WebKit/public/web/WebFormControlElement.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 60
60 void BindRequest(mojom::AutofillAgentRequest request); 61 void BindRequest(mojom::AutofillAgentRequest request);
61 62
62 const mojom::AutofillDriverPtr& GetAutofillDriver(); 63 const mojom::AutofillDriverPtr& GetAutofillDriver();
63 64
64 // mojom::AutofillAgent: 65 // mojom::AutofillAgent:
65 void FirstUserGestureObservedInTab() override; 66 void FirstUserGestureObservedInTab() override;
66 void FillForm(int32_t id, const FormData& form) override; 67 void FillForm(int32_t id, const FormData& form) override;
67 void PreviewForm(int32_t id, const FormData& form) override; 68 void PreviewForm(int32_t id, const FormData& form) override;
68 void FieldTypePredictionsAvailable( 69 void FieldTypePredictionsAvailable(
69 mojo::Array<FormDataPredictions> forms) override; 70 const std::vector<FormDataPredictions>& forms) override;
70 void ClearForm() override; 71 void ClearForm() override;
71 void ClearPreviewedForm() override; 72 void ClearPreviewedForm() override;
72 void FillFieldWithValue(const mojo::String& value) override; 73 void FillFieldWithValue(const base::string16& value) override;
73 void PreviewFieldWithValue(const mojo::String& value) override; 74 void PreviewFieldWithValue(const base::string16& value) override;
74 void AcceptDataListSuggestion(const mojo::String& value) override; 75 void AcceptDataListSuggestion(const base::string16& value) override;
75 void FillPasswordSuggestion(const mojo::String& username, 76 void FillPasswordSuggestion(const base::string16& username,
76 const mojo::String& password) override; 77 const base::string16& password) override;
77 void PreviewPasswordSuggestion(const mojo::String& username, 78 void PreviewPasswordSuggestion(const base::string16& username,
78 const mojo::String& password) override; 79 const base::string16& password) override;
79 void ShowInitialPasswordAccountSuggestions( 80 void ShowInitialPasswordAccountSuggestions(
80 int32_t key, 81 int32_t key,
81 const PasswordFormFillData& form_data) override; 82 const PasswordFormFillData& form_data) override;
82 83
83 protected: 84 protected:
84 // blink::WebAutofillClient: 85 // blink::WebAutofillClient:
85 void didAssociateFormControls( 86 void didAssociateFormControls(
86 const blink::WebVector<blink::WebNode>& nodes) override; 87 const blink::WebVector<blink::WebNode>& nodes) override;
87 88
88 private: 89 private:
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 mojom::AutofillDriverPtr mojo_autofill_driver_; 304 mojom::AutofillDriverPtr mojo_autofill_driver_;
304 305
305 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_; 306 base::WeakPtrFactory<AutofillAgent> weak_ptr_factory_;
306 307
307 DISALLOW_COPY_AND_ASSIGN(AutofillAgent); 308 DISALLOW_COPY_AND_ASSIGN(AutofillAgent);
308 }; 309 };
309 310
310 } // namespace autofill 311 } // namespace autofill
311 312
312 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_ 313 #endif // COMPONENTS_AUTOFILL_CONTENT_RENDERER_AUTOFILL_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698