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

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: One more merge to head. 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 24 matching lines...) Expand all
35 #include "content/public/common/ssl_status.h" 35 #include "content/public/common/ssl_status.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
37 37
38 class AutofillExternalDelegate; 38 class AutofillExternalDelegate;
39 class AutofillField; 39 class AutofillField;
40 class AutofillProfile; 40 class AutofillProfile;
41 class AutofillMetrics; 41 class AutofillMetrics;
42 class CreditCard; 42 class CreditCard;
43 class FormGroup; 43 class FormGroup;
44 class GURL; 44 class GURL;
45 class PrefServiceSyncable; 45 class PrefRegistrySyncable;
46 class ProfileSyncService; 46 class ProfileSyncService;
47 47
48 struct FormData; 48 struct FormData;
49 struct FormFieldData; 49 struct FormFieldData;
50 struct PasswordFormFillData; 50 struct PasswordFormFillData;
51 struct ViewHostMsg_FrameNavigate_Params; 51 struct ViewHostMsg_FrameNavigate_Params;
52 52
53 namespace autofill { 53 namespace autofill {
54 class AutofillManagerDelegate; 54 class AutofillManagerDelegate;
55 class PasswordGenerator; 55 class PasswordGenerator;
(...skipping 21 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 432 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
433 TestTabContentsWithExternalDelegate); 433 TestTabContentsWithExternalDelegate);
434 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 434 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
435 UserHappinessFormLoadAndSubmission); 435 UserHappinessFormLoadAndSubmission);
436 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 436 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
437 437
438 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 438 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
439 }; 439 };
440 440
441 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 441 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698