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

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

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add to PrefRegistrySyncable and PrefServiceSyncable to let sync know of pre-registered prefs. 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_AUTOFILL_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 #include "content/public/common/ssl_status.h" 36 #include "content/public/common/ssl_status.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
38 38
39 class AutofillExternalDelegate; 39 class AutofillExternalDelegate;
40 class AutofillField; 40 class AutofillField;
41 class AutofillProfile; 41 class AutofillProfile;
42 class AutofillMetrics; 42 class AutofillMetrics;
43 class CreditCard; 43 class CreditCard;
44 class FormGroup; 44 class FormGroup;
45 class GURL; 45 class GURL;
46 class PrefServiceSyncable; 46 class PrefRegistrySyncable;
47 class ProfileSyncService; 47 class ProfileSyncService;
48 48
49 struct FormData; 49 struct FormData;
50 struct FormFieldData; 50 struct FormFieldData;
51 struct PasswordFormFillData; 51 struct PasswordFormFillData;
52 struct ViewHostMsg_FrameNavigate_Params; 52 struct ViewHostMsg_FrameNavigate_Params;
53 53
54 namespace autofill { 54 namespace autofill {
55 class AutofillManagerDelegate; 55 class AutofillManagerDelegate;
56 class PasswordGenerator; 56 class PasswordGenerator;
(...skipping 20 matching lines...) Expand all
77 public AutofillDownloadManager::Observer, 77 public AutofillDownloadManager::Observer,
78 public ProfileSyncServiceObserver, 78 public ProfileSyncServiceObserver,
79 public base::RefCounted<AutofillManager> { 79 public base::RefCounted<AutofillManager> {
80 public: 80 public:
81 static void CreateForWebContentsAndDelegate( 81 static void CreateForWebContentsAndDelegate(
82 content::WebContents* contents, 82 content::WebContents* contents,
83 autofill::AutofillManagerDelegate* delegate); 83 autofill::AutofillManagerDelegate* delegate);
84 static AutofillManager* FromWebContents(content::WebContents* contents); 84 static AutofillManager* FromWebContents(content::WebContents* contents);
85 85
86 // Registers our Enable/Disable Autofill pref. 86 // Registers our Enable/Disable Autofill pref.
87 static void RegisterUserPrefs(PrefServiceSyncable* prefs); 87 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
88 88
89 // Set an external delegate. 89 // Set an external delegate.
90 void SetExternalDelegate(AutofillExternalDelegate* delegate); 90 void SetExternalDelegate(AutofillExternalDelegate* delegate);
91 91
92 // Used to say if this class has an external delegate that it is using. 92 // Used to say if this class has an external delegate that it is using.
93 bool HasExternalDelegate(); 93 bool HasExternalDelegate();
94 94
95 // Called from our external delegate so they cannot be private. 95 // Called from our external delegate so they cannot be private.
96 virtual void OnFillAutofillFormData(int query_id, 96 virtual void OnFillAutofillFormData(int query_id,
97 const FormData& form, 97 const FormData& form,
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 421 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
422 TestTabContentsWithExternalDelegate); 422 TestTabContentsWithExternalDelegate);
423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 423 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
424 UserHappinessFormLoadAndSubmission); 424 UserHappinessFormLoadAndSubmission);
425 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 425 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
426 426
427 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 427 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
428 }; 428 };
429 429
430 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 430 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698