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

Side by Side Diff: components/autofill/browser/autofill_manager.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 #include "components/autofill/browser/form_structure.h" 28 #include "components/autofill/browser/form_structure.h"
29 #include "components/autofill/browser/personal_data_manager.h" 29 #include "components/autofill/browser/personal_data_manager.h"
30 #include "components/autofill/common/autocheckout_status.h" 30 #include "components/autofill/common/autocheckout_status.h"
31 #include "components/autofill/common/form_data.h" 31 #include "components/autofill/common/form_data.h"
32 #include "components/autofill/common/forms_seen_state.h" 32 #include "components/autofill/common/forms_seen_state.h"
33 #include "content/public/browser/web_contents_observer.h" 33 #include "content/public/browser/web_contents_observer.h"
34 #include "content/public/common/ssl_status.h" 34 #include "content/public/common/ssl_status.h"
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
36 36
37 class GURL; 37 class GURL;
38 class PrefRegistrySyncable;
39 38
40 struct ViewHostMsg_FrameNavigate_Params; 39 struct ViewHostMsg_FrameNavigate_Params;
41 40
42 namespace content { 41 namespace content {
43 class RenderViewHost; 42 class RenderViewHost;
44 class WebContents; 43 class WebContents;
45 } 44 }
46 45
47 namespace gfx { 46 namespace gfx {
48 class Rect; 47 class Rect;
49 class RectF; 48 class RectF;
50 } 49 }
51 50
52 namespace IPC { 51 namespace IPC {
53 class Message; 52 class Message;
54 } 53 }
55 54
55 namespace user_prefs {
56 class PrefRegistrySyncable;
57 }
58
56 namespace autofill { 59 namespace autofill {
57 60
58 class AutofillDataModel; 61 class AutofillDataModel;
59 class AutofillExternalDelegate; 62 class AutofillExternalDelegate;
60 class AutofillField; 63 class AutofillField;
61 class AutofillProfile; 64 class AutofillProfile;
62 class AutofillManagerDelegate; 65 class AutofillManagerDelegate;
63 class AutofillManagerTestDelegate; 66 class AutofillManagerTestDelegate;
64 class AutofillMetrics; 67 class AutofillMetrics;
65 class CreditCard; 68 class CreditCard;
66 class FormStructureBrowserTest; 69 class FormStructureBrowserTest;
67 70
68 struct FormData; 71 struct FormData;
69 struct FormFieldData; 72 struct FormFieldData;
70 struct PasswordFormFillData; 73 struct PasswordFormFillData;
71 74
72 // Manages saving and restoring the user's personal information entered into web 75 // Manages saving and restoring the user's personal information entered into web
73 // forms. 76 // forms.
74 class AutofillManager : public content::WebContentsObserver, 77 class AutofillManager : public content::WebContentsObserver,
75 public AutofillDownloadManager::Observer, 78 public AutofillDownloadManager::Observer,
76 public base::SupportsUserData::Data { 79 public base::SupportsUserData::Data {
77 public: 80 public:
78 static void CreateForWebContentsAndDelegate( 81 static void CreateForWebContentsAndDelegate(
79 content::WebContents* contents, 82 content::WebContents* contents,
80 autofill::AutofillManagerDelegate* delegate, 83 autofill::AutofillManagerDelegate* delegate,
81 const std::string& app_locale); 84 const std::string& app_locale);
82 static AutofillManager* FromWebContents(content::WebContents* contents); 85 static AutofillManager* FromWebContents(content::WebContents* contents);
83 86
84 // Registers our Enable/Disable Autofill pref. 87 // Registers our Enable/Disable Autofill pref.
85 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 88 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
86 89
87 // Set an external delegate. 90 // Set an external delegate.
88 void SetExternalDelegate(AutofillExternalDelegate* delegate); 91 void SetExternalDelegate(AutofillExternalDelegate* delegate);
89 92
90 // Whether browser process will create and own the Autofill popup UI. 93 // Whether browser process will create and own the Autofill popup UI.
91 bool IsNativeUiEnabled(); 94 bool IsNativeUiEnabled();
92 95
93 // Called from our external delegate so they cannot be private. 96 // Called from our external delegate so they cannot be private.
94 virtual void OnFillAutofillFormData(int query_id, 97 virtual void OnFillAutofillFormData(int query_id,
95 const FormData& form, 98 const FormData& form,
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 424 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
422 UserHappinessFormLoadAndSubmission); 425 UserHappinessFormLoadAndSubmission);
423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 426 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
424 427
425 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 428 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
426 }; 429 };
427 430
428 } // namespace autofill 431 } // namespace autofill
429 432
430 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_ 433 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_pref_service_syncable.cc ('k') | components/autofill/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698