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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 years 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 18 matching lines...) Expand all
29 #include "content/public/common/ssl_status.h" 29 #include "content/public/common/ssl_status.h"
30 30
31 class AutofillExternalDelegate; 31 class AutofillExternalDelegate;
32 class AutofillField; 32 class AutofillField;
33 class AutofillProfile; 33 class AutofillProfile;
34 class AutofillMetrics; 34 class AutofillMetrics;
35 class CreditCard; 35 class CreditCard;
36 class FormGroup; 36 class FormGroup;
37 class GURL; 37 class GURL;
38 class PersonalDataManager; 38 class PersonalDataManager;
39 class PrefService; 39 class PrefServiceSyncable;
40 class ProfileSyncService; 40 class ProfileSyncService;
41 41
42 struct FormData; 42 struct FormData;
43 struct FormFieldData; 43 struct FormFieldData;
44 struct PasswordFormFillData; 44 struct PasswordFormFillData;
45 struct ViewHostMsg_FrameNavigate_Params; 45 struct ViewHostMsg_FrameNavigate_Params;
46 46
47 namespace autofill { 47 namespace autofill {
48 class AutofillManagerDelegate; 48 class AutofillManagerDelegate;
49 class PasswordGenerator; 49 class PasswordGenerator;
(...skipping 20 matching lines...) Expand all
70 public AutofillDownloadManager::Observer, 70 public AutofillDownloadManager::Observer,
71 public ProfileSyncServiceObserver, 71 public ProfileSyncServiceObserver,
72 public base::RefCounted<AutofillManager> { 72 public base::RefCounted<AutofillManager> {
73 public: 73 public:
74 static void CreateForWebContentsAndDelegate( 74 static void CreateForWebContentsAndDelegate(
75 content::WebContents* contents, 75 content::WebContents* contents,
76 autofill::AutofillManagerDelegate* delegate); 76 autofill::AutofillManagerDelegate* delegate);
77 static AutofillManager* FromWebContents(content::WebContents* contents); 77 static AutofillManager* FromWebContents(content::WebContents* contents);
78 78
79 // Registers our Enable/Disable Autofill pref. 79 // Registers our Enable/Disable Autofill pref.
80 static void RegisterUserPrefs(PrefServiceBase* prefs); 80 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
81 81
82 // Set an external delegate. 82 // Set an external delegate.
83 void SetExternalDelegate(AutofillExternalDelegate* delegate); 83 void SetExternalDelegate(AutofillExternalDelegate* delegate);
84 84
85 // Used to say if this class has an external delegate that it is using. 85 // Used to say if this class has an external delegate that it is using.
86 bool HasExternalDelegate(); 86 bool HasExternalDelegate();
87 87
88 // Called from our external delegate so they cannot be private. 88 // Called from our external delegate so they cannot be private.
89 virtual void OnFillAutofillFormData(int query_id, 89 virtual void OnFillAutofillFormData(int query_id,
90 const FormData& form, 90 const FormData& form,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest, 395 FRIEND_TEST_ALL_PREFIXES(AutofillManagerTest,
396 TestTabContentsWithExternalDelegate); 396 TestTabContentsWithExternalDelegate);
397 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 397 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
398 UserHappinessFormLoadAndSubmission); 398 UserHappinessFormLoadAndSubmission);
399 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 399 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
400 400
401 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 401 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
402 }; 402 };
403 403
404 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 404 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698