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

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

Issue 12588002: [Autofill] Add user type metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 16 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
17 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" 17 #include "chrome/browser/ui/autofill/autofill_dialog_models.h"
18 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 18 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
19 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 19 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
20 #include "chrome/browser/ui/autofill/country_combobox_model.h" 20 #include "chrome/browser/ui/autofill/country_combobox_model.h"
21 #include "components/autofill/browser/autofill_manager_delegate.h" 21 #include "components/autofill/browser/autofill_manager_delegate.h"
22 #include "components/autofill/browser/autofill_metrics.h"
22 #include "components/autofill/browser/autofill_popup_delegate.h" 23 #include "components/autofill/browser/autofill_popup_delegate.h"
23 #include "components/autofill/browser/field_types.h" 24 #include "components/autofill/browser/field_types.h"
24 #include "components/autofill/browser/form_structure.h" 25 #include "components/autofill/browser/form_structure.h"
25 #include "components/autofill/browser/personal_data_manager.h" 26 #include "components/autofill/browser/personal_data_manager.h"
26 #include "components/autofill/browser/personal_data_manager_observer.h" 27 #include "components/autofill/browser/personal_data_manager_observer.h"
27 #include "components/autofill/browser/wallet/required_action.h" 28 #include "components/autofill/browser/wallet/required_action.h"
28 #include "components/autofill/browser/wallet/wallet_client.h" 29 #include "components/autofill/browser/wallet/wallet_client.h"
29 #include "components/autofill/browser/wallet/wallet_client_observer.h" 30 #include "components/autofill/browser/wallet/wallet_client_observer.h"
30 #include "content/public/browser/notification_observer.h" 31 #include "content/public/browser/notification_observer.h"
31 #include "content/public/browser/notification_registrar.h" 32 #include "content/public/browser/notification_registrar.h"
32 #include "content/public/common/ssl_status.h" 33 #include "content/public/common/ssl_status.h"
33 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
34 #include "ui/base/models/simple_menu_model.h" 35 #include "ui/base/models/simple_menu_model.h"
35 #include "ui/base/ui_base_types.h" 36 #include "ui/base/ui_base_types.h"
36 37
37 class AutofillMetrics;
38 class AutofillPopupControllerImpl; 38 class AutofillPopupControllerImpl;
39 class FormGroup; 39 class FormGroup;
40 class Profile; 40 class Profile;
41 class PrefRegistrySyncable; 41 class PrefRegistrySyncable;
42 42
43 namespace content { 43 namespace content {
44 class WebContents; 44 class WebContents;
45 } 45 }
46 46
47 namespace autofill { 47 namespace autofill {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 void SubmitWithWallet(); 291 void SubmitWithWallet();
292 292
293 // Gets a full wallet from Online Wallet so the user can purchase something. 293 // Gets a full wallet from Online Wallet so the user can purchase something.
294 // This information is decoded to reveal a fronting (proxy) card. 294 // This information is decoded to reveal a fronting (proxy) card.
295 void GetFullWallet(); 295 void GetFullWallet();
296 296
297 // Called when there's nothing left to accept, update, save, or authenticate 297 // Called when there's nothing left to accept, update, save, or authenticate
298 // in order to fill |form_structure_| and pass data back to the invoking page. 298 // in order to fill |form_structure_| and pass data back to the invoking page.
299 void FinishSubmit(); 299 void FinishSubmit();
300 300
301 AutofillMetrics::DialogInitialUserStateMetric GetInitialUserState() const;
302
301 // The |profile| for |contents_|. 303 // The |profile| for |contents_|.
302 Profile* const profile_; 304 Profile* const profile_;
303 305
304 // The WebContents where the Autofill action originated. 306 // The WebContents where the Autofill action originated.
305 content::WebContents* const contents_; 307 content::WebContents* const contents_;
306 308
307 FormStructure form_structure_; 309 FormStructure form_structure_;
308 310
309 // Whether the URL visible to the user when this dialog was requested to be 311 // Whether the URL visible to the user when this dialog was requested to be
310 // invoked is the same as |source_url_|. 312 // invoked is the same as |source_url_|.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 376
375 // A NotificationRegistrar for tracking the completion of sign-in. 377 // A NotificationRegistrar for tracking the completion of sign-in.
376 content::NotificationRegistrar registrar_; 378 content::NotificationRegistrar registrar_;
377 379
378 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_; 380 base::WeakPtrFactory<AutofillDialogControllerImpl> weak_ptr_factory_;
379 381
380 // For logging UMA metrics. 382 // For logging UMA metrics.
381 const AutofillMetrics& metric_logger_; 383 const AutofillMetrics& metric_logger_;
382 base::Time dialog_shown_timestamp_; 384 base::Time dialog_shown_timestamp_;
383 base::Time autocheckout_started_timestamp_; 385 base::Time autocheckout_started_timestamp_;
386 AutofillMetrics::DialogInitialUserStateMetric initial_user_state_;
384 387
385 // Whether this is an Autocheckout or a requestAutocomplete dialog. 388 // Whether this is an Autocheckout or a requestAutocomplete dialog.
386 const DialogType dialog_type_; 389 const DialogType dialog_type_;
387 390
388 // True if the termination action was a submit. 391 // True if the termination action was a submit.
389 bool did_submit_; 392 bool did_submit_;
390 393
391 // Whether or not an Autocheckout flow is running. 394 // Whether or not an Autocheckout flow is running.
392 bool autocheckout_is_running_; 395 bool autocheckout_is_running_;
393 396
394 // Whether or not there was an error in the Autocheckout flow. 397 // Whether or not there was an error in the Autocheckout flow.
395 bool had_autocheckout_error_; 398 bool had_autocheckout_error_;
396 399
397 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 400 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
398 }; 401 };
399 402
400 } // namespace autofill 403 } // namespace autofill
401 404
402 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 405 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698