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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 12457033: Implements SendAutocheckoutStatus API calls for stats tracking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 public wallet::WalletClientDelegate, 62 public wallet::WalletClientDelegate,
63 public PersonalDataManagerObserver, 63 public PersonalDataManagerObserver,
64 public AccountChooserModelDelegate { 64 public AccountChooserModelDelegate {
65 public: 65 public:
66 AutofillDialogControllerImpl( 66 AutofillDialogControllerImpl(
67 content::WebContents* contents, 67 content::WebContents* contents,
68 const FormData& form_structure, 68 const FormData& form_structure,
69 const GURL& source_url, 69 const GURL& source_url,
70 const AutofillMetrics& metric_logger, 70 const AutofillMetrics& metric_logger,
71 const DialogType dialog_type, 71 const DialogType dialog_type,
72 const base::Callback<void(const FormStructure*)>& callback); 72 const base::Callback<void(const FormStructure*,
73 const std::string&)>& callback);
73 virtual ~AutofillDialogControllerImpl(); 74 virtual ~AutofillDialogControllerImpl();
74 75
75 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 76 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
76 77
77 void Show(); 78 void Show();
78 void Hide(); 79 void Hide();
79 80
80 // Updates the progress bar based on the Autocheckout progress. |value| should 81 // Updates the progress bar based on the Autocheckout progress. |value| should
81 // be in [0.0, 1.0]. 82 // be in [0.0, 1.0].
82 void UpdateProgressBar(double value); 83 void UpdateProgressBar(double value);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual void OnDidSaveAddress( 169 virtual void OnDidSaveAddress(
169 const std::string& address_id, 170 const std::string& address_id,
170 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 171 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
171 virtual void OnDidSaveInstrument( 172 virtual void OnDidSaveInstrument(
172 const std::string& instrument_id, 173 const std::string& instrument_id,
173 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 174 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
174 virtual void OnDidSaveInstrumentAndAddress( 175 virtual void OnDidSaveInstrumentAndAddress(
175 const std::string& instrument_id, 176 const std::string& instrument_id,
176 const std::string& address_id, 177 const std::string& address_id,
177 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 178 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
178 virtual void OnDidSendAutocheckoutStatus() OVERRIDE;
179 virtual void OnDidUpdateAddress( 179 virtual void OnDidUpdateAddress(
180 const std::string& address_id, 180 const std::string& address_id,
181 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 181 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
182 virtual void OnDidUpdateInstrument( 182 virtual void OnDidUpdateInstrument(
183 const std::string& instrument_id, 183 const std::string& instrument_id,
184 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE; 184 const std::vector<wallet::RequiredAction>& required_actions) OVERRIDE;
185 virtual void OnWalletError( 185 virtual void OnWalletError(
186 wallet::WalletClient::ErrorType error_type) OVERRIDE; 186 wallet::WalletClient::ErrorType error_type) OVERRIDE;
187 virtual void OnMalformedResponse() OVERRIDE; 187 virtual void OnMalformedResponse() OVERRIDE;
188 virtual void OnNetworkError(int response_code) OVERRIDE; 188 virtual void OnNetworkError(int response_code) OVERRIDE;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Whether the URL visible to the user when this dialog was requested to be 324 // Whether the URL visible to the user when this dialog was requested to be
325 // invoked is the same as |source_url_|. 325 // invoked is the same as |source_url_|.
326 bool invoked_from_same_origin_; 326 bool invoked_from_same_origin_;
327 327
328 // The URL of the invoking site. 328 // The URL of the invoking site.
329 GURL source_url_; 329 GURL source_url_;
330 330
331 // The SSL info from the invoking site. 331 // The SSL info from the invoking site.
332 content::SSLStatus ssl_status_; 332 content::SSLStatus ssl_status_;
333 333
334 // The callback via which we return the collected data. 334 // The callback via which we return the collected data and, if Online Wallet
335 base::Callback<void(const FormStructure*)> callback_; 335 // was used, the Google transaction id.
336 base::Callback<void(const FormStructure*, const std::string&)> callback_;
336 337
337 // The AccountChooserModel acts as the MenuModel for the account chooser, 338 // The AccountChooserModel acts as the MenuModel for the account chooser,
338 // and also tracks which data source the dialog is using. 339 // and also tracks which data source the dialog is using.
339 AccountChooserModel account_chooser_model_; 340 AccountChooserModel account_chooser_model_;
340 341
341 // A client to talk to the Online Wallet API. 342 // A client to talk to the Online Wallet API.
342 wallet::WalletClient wallet_client_; 343 wallet::WalletClient wallet_client_;
343 344
344 // Recently received items retrieved via |wallet_client_|. 345 // Recently received items retrieved via |wallet_client_|.
345 scoped_ptr<wallet::WalletItems> wallet_items_; 346 scoped_ptr<wallet::WalletItems> wallet_items_;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 410
410 // Whether or not there was an error in the Autocheckout flow. 411 // Whether or not there was an error in the Autocheckout flow.
411 bool had_autocheckout_error_; 412 bool had_autocheckout_error_;
412 413
413 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 414 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
414 }; 415 };
415 416
416 } // namespace autofill 417 } // namespace autofill
417 418
418 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 419 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698