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

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

Issue 12091086: [Autofill] Add UMA timing metrics for requestAutocomplete dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the "autocomplete" prefix Created 7 years, 10 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/time.h"
14 #include "chrome/browser/autofill/autofill_manager_delegate.h"
15 #include "chrome/browser/autofill/autofill_metrics.h"
13 #include "chrome/browser/autofill/field_types.h" 16 #include "chrome/browser/autofill/field_types.h"
14 #include "chrome/browser/autofill/form_structure.h" 17 #include "chrome/browser/autofill/form_structure.h"
15 #include "chrome/browser/autofill/personal_data_manager.h" 18 #include "chrome/browser/autofill/personal_data_manager.h"
16 #include "chrome/browser/autofill/wallet/required_action.h" 19 #include "chrome/browser/autofill/wallet/required_action.h"
17 #include "chrome/browser/autofill/wallet/wallet_client.h" 20 #include "chrome/browser/autofill/wallet/wallet_client.h"
18 #include "chrome/browser/autofill/wallet/wallet_client_observer.h" 21 #include "chrome/browser/autofill/wallet/wallet_client_observer.h"
19 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" 22 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
20 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" 23 #include "chrome/browser/ui/autofill/autofill_dialog_models.h"
21 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 24 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
22 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" 25 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
(...skipping 22 matching lines...) Expand all
45 public AutofillPopupDelegate, 48 public AutofillPopupDelegate,
46 public content::NotificationObserver, 49 public content::NotificationObserver,
47 public SuggestionsMenuModelDelegate, 50 public SuggestionsMenuModelDelegate,
48 public wallet::WalletClientObserver { 51 public wallet::WalletClientObserver {
49 public: 52 public:
50 AutofillDialogControllerImpl( 53 AutofillDialogControllerImpl(
51 content::WebContents* contents, 54 content::WebContents* contents,
52 const FormData& form_structure, 55 const FormData& form_structure,
53 const GURL& source_url, 56 const GURL& source_url,
54 const content::SSLStatus& ssl_status, 57 const content::SSLStatus& ssl_status,
58 const AutofillMetrics& metric_logger,
59 const DialogRequester requester,
55 const base::Callback<void(const FormStructure*)>& callback); 60 const base::Callback<void(const FormStructure*)>& callback);
56 virtual ~AutofillDialogControllerImpl(); 61 virtual ~AutofillDialogControllerImpl();
57 62
58 void Show(); 63 void Show();
59 void Hide(); 64 void Hide();
60 65
61 // AutofillDialogController implementation. 66 // AutofillDialogController implementation.
62 virtual string16 DialogTitle() const OVERRIDE; 67 virtual string16 DialogTitle() const OVERRIDE;
63 virtual string16 EditSuggestionText() const OVERRIDE; 68 virtual string16 EditSuggestionText() const OVERRIDE;
64 virtual string16 UseBillingForShippingText() const OVERRIDE; 69 virtual string16 UseBillingForShippingText() const OVERRIDE;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 265
261 // The section for which |popup_controller_| is currently showing a popup 266 // The section for which |popup_controller_| is currently showing a popup
262 // (if any). 267 // (if any).
263 DialogSection section_showing_popup_; 268 DialogSection section_showing_popup_;
264 269
265 scoped_ptr<AutofillDialogView> view_; 270 scoped_ptr<AutofillDialogView> view_;
266 271
267 // A NotificationRegistrar for tracking the completion of sign-in. 272 // A NotificationRegistrar for tracking the completion of sign-in.
268 content::NotificationRegistrar registrar_; 273 content::NotificationRegistrar registrar_;
269 274
275 // For logging UMA metrics.
276 const base::Time dialog_shown_timestamp_;
277 const AutofillMetrics& metric_logger_;
278 DialogRequester requester_;
279
270 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); 280 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl);
271 }; 281 };
272 282
273 } // namespace autofill 283 } // namespace autofill
274 284
275 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ 285 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698