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

Side by Side Diff: components/autofill/core/browser/autofill_client.h

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CORE_BROWSER_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 14
15 namespace content {
16 class RenderFrameHost;
17 }
18
15 namespace gfx { 19 namespace gfx {
16 class Rect; 20 class Rect;
17 class RectF; 21 class RectF;
18 } 22 }
19 23
20 class GURL; 24 class GURL;
21 class PrefService; 25 class PrefService;
22 26
23 namespace autofill { 27 namespace autofill {
24 28
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 116
113 // Hide the Autofill popup if one is currently showing. 117 // Hide the Autofill popup if one is currently showing.
114 virtual void HideAutofillPopup() = 0; 118 virtual void HideAutofillPopup() = 0;
115 119
116 // Whether the Autocomplete feature of Autofill should be enabled. 120 // Whether the Autocomplete feature of Autofill should be enabled.
117 virtual bool IsAutocompleteEnabled() = 0; 121 virtual bool IsAutocompleteEnabled() = 0;
118 122
119 // Pass the form structures to the password generation manager to detect 123 // Pass the form structures to the password generation manager to detect
120 // account creation forms. 124 // account creation forms.
121 virtual void DetectAccountCreationForms( 125 virtual void DetectAccountCreationForms(
126 content::RenderFrameHost* rfh,
122 const std::vector<autofill::FormStructure*>& forms) = 0; 127 const std::vector<autofill::FormStructure*>& forms) = 0;
123 128
124 // Inform the client that the field has been filled. 129 // Inform the client that the field has been filled.
125 virtual void DidFillOrPreviewField( 130 virtual void DidFillOrPreviewField(
126 const base::string16& autofilled_value, 131 const base::string16& autofilled_value,
127 const base::string16& profile_full_name) = 0; 132 const base::string16& profile_full_name) = 0;
133
134 // Informs the client that a user gesture has been observed.
135 virtual void OnFirstUserGestureObserved() = 0;
128 }; 136 };
129 137
130 } // namespace autofill 138 } // namespace autofill
131 139
132 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ 140 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698