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

Side by Side Diff: chrome/browser/autofill/autocheckout_manager.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 11
12 class AutofillManager; 12 class AutofillManager;
13 class FormStructure; 13 class FormStructure;
14 class GURL; 14 class GURL;
15 15
16 struct FormData; 16 struct FormData;
17 17
18 namespace content { 18 namespace content {
19 struct SSLStatus; 19 struct SSLStatus;
20 } 20 }
21 21
22 namespace autofill {
23
22 class AutocheckoutManager { 24 class AutocheckoutManager {
23 public: 25 public:
24 explicit AutocheckoutManager(AutofillManager* autofill_manager); 26 explicit AutocheckoutManager(AutofillManager* autofill_manager);
25 27
26 virtual void ShowAutocheckoutDialog(const GURL& frame_url, 28 virtual void ShowAutocheckoutDialog(const GURL& frame_url,
27 const content::SSLStatus& ssl_status); 29 const content::SSLStatus& ssl_status);
28 30
29 virtual ~AutocheckoutManager(); 31 virtual ~AutocheckoutManager();
30 32
31 private: 33 private:
32 34
33 // Callback called from AutofillDialogController on filling up the UI form. 35 // Callback called from AutofillDialogController on filling up the UI form.
34 void ReturnAutocheckoutData(const FormStructure* result); 36 void ReturnAutocheckoutData(const FormStructure* result);
35 37
36 AutofillManager* autofill_manager_; // WEAK; owns us 38 AutofillManager* autofill_manager_; // WEAK; owns us
37 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_; 39 base::WeakPtrFactory<AutocheckoutManager> weak_ptr_factory_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager); 41 DISALLOW_COPY_AND_ASSIGN(AutocheckoutManager);
40 }; 42 };
41 43
44 } // namespace autofill
45
42 #endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_ 46 #endif // CHROME_BROWSER_AUTOFILL_AUTOCHECKOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698