OLD | NEW |
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 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
| 15 #include "url/gurl.h" |
15 | 16 |
16 class IdentityProvider; | 17 class IdentityProvider; |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 class RenderFrameHost; | 20 class RenderFrameHost; |
20 } | 21 } |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class Rect; | 24 class Rect; |
24 class RectF; | 25 class RectF; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual void DidFillOrPreviewField( | 167 virtual void DidFillOrPreviewField( |
167 const base::string16& autofilled_value, | 168 const base::string16& autofilled_value, |
168 const base::string16& profile_full_name) = 0; | 169 const base::string16& profile_full_name) = 0; |
169 | 170 |
170 // Informs the client that a user gesture has been observed. | 171 // Informs the client that a user gesture has been observed. |
171 virtual void OnFirstUserGestureObserved() = 0; | 172 virtual void OnFirstUserGestureObserved() = 0; |
172 | 173 |
173 // Opens |url| with the supplied |disposition|. | 174 // Opens |url| with the supplied |disposition|. |
174 virtual void LinkClicked(const GURL& url, | 175 virtual void LinkClicked(const GURL& url, |
175 WindowOpenDisposition disposition) = 0; | 176 WindowOpenDisposition disposition) = 0; |
| 177 |
| 178 // If the context is secure. |
| 179 virtual bool IsContextSecure(const GURL& form_origin) = 0; |
176 }; | 180 }; |
177 | 181 |
178 } // namespace autofill | 182 } // namespace autofill |
179 | 183 |
180 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 184 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |