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> |
Mathieu
2016/04/04 13:36:17
#include <memory>
vabr (Chromium)
2016/04/04 14:29:04
Good catch!
Done.
| |
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 "base/values.h" | 14 #include "base/values.h" |
15 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 class IdentityProvider; | 18 class IdentityProvider; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 | 127 |
128 // Runs |callback| if the |card| should be imported as personal data. | 128 // Runs |callback| if the |card| should be imported as personal data. |
129 // |metric_logger| can be used to log user actions. | 129 // |metric_logger| can be used to log user actions. |
130 virtual void ConfirmSaveCreditCardLocally(const CreditCard& card, | 130 virtual void ConfirmSaveCreditCardLocally(const CreditCard& card, |
131 const base::Closure& callback) = 0; | 131 const base::Closure& callback) = 0; |
132 | 132 |
133 // Runs |callback| if the |card| should be uploaded to Payments. Displays the | 133 // Runs |callback| if the |card| should be uploaded to Payments. Displays the |
134 // contents of |legal_message| to the user. | 134 // contents of |legal_message| to the user. |
135 virtual void ConfirmSaveCreditCardToCloud( | 135 virtual void ConfirmSaveCreditCardToCloud( |
136 const CreditCard& card, | 136 const CreditCard& card, |
137 scoped_ptr<base::DictionaryValue> legal_message, | 137 std::unique_ptr<base::DictionaryValue> legal_message, |
138 const base::Closure& callback) = 0; | 138 const base::Closure& callback) = 0; |
139 | 139 |
140 // Gathers risk data and provides it to |callback|. | 140 // Gathers risk data and provides it to |callback|. |
141 virtual void LoadRiskData( | 141 virtual void LoadRiskData( |
142 const base::Callback<void(const std::string&)>& callback) = 0; | 142 const base::Callback<void(const std::string&)>& callback) = 0; |
143 | 143 |
144 // Returns true if both the platform and the device support scanning credit | 144 // Returns true if both the platform and the device support scanning credit |
145 // cards. Should be called before ScanCreditCard(). | 145 // cards. Should be called before ScanCreditCard(). |
146 virtual bool HasCreditCardScanFeature() = 0; | 146 virtual bool HasCreditCardScanFeature() = 0; |
147 | 147 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
190 // Informs the client that a user gesture has been observed. | 190 // Informs the client that a user gesture has been observed. |
191 virtual void OnFirstUserGestureObserved() = 0; | 191 virtual void OnFirstUserGestureObserved() = 0; |
192 | 192 |
193 // If the context is secure. | 193 // If the context is secure. |
194 virtual bool IsContextSecure(const GURL& form_origin) = 0; | 194 virtual bool IsContextSecure(const GURL& form_origin) = 0; |
195 }; | 195 }; |
196 | 196 |
197 } // namespace autofill | 197 } // namespace autofill |
198 | 198 |
199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
OLD | NEW |