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

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

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // forms. 69 // forms.
70 class AutofillManager : public content::NotificationObserver, 70 class AutofillManager : public content::NotificationObserver,
71 public content::WebContentsObserver, 71 public content::WebContentsObserver,
72 public AutofillDownloadManager::Observer, 72 public AutofillDownloadManager::Observer,
73 public ProfileSyncServiceObserver, 73 public ProfileSyncServiceObserver,
74 public base::RefCounted<AutofillManager> { 74 public base::RefCounted<AutofillManager> {
75 public: 75 public:
76 explicit AutofillManager(TabContents* tab_contents); 76 explicit AutofillManager(TabContents* tab_contents);
77 77
78 // Registers our Enable/Disable Autofill pref. 78 // Registers our Enable/Disable Autofill pref.
79 static void RegisterUserPrefs(PrefService* prefs); 79 static void RegisterUserPrefs(PrefServiceBase* prefs);
80 80
81 // Set our external delegate. 81 // Set our external delegate.
82 // TODO(jrg): consider passing delegate into the ctor. That won't 82 // TODO(jrg): consider passing delegate into the ctor. That won't
83 // work if the delegate has a pointer to the AutofillManager, but 83 // work if the delegate has a pointer to the AutofillManager, but
84 // future directions may not need such a pointer. 84 // future directions may not need such a pointer.
85 void SetExternalDelegate(AutofillExternalDelegate* delegate) { 85 void SetExternalDelegate(AutofillExternalDelegate* delegate) {
86 external_delegate_ = delegate; 86 external_delegate_ = delegate;
87 } 87 }
88 88
89 // Used to say if this class has an external delegate that it is using. 89 // Used to say if this class has an external delegate that it is using.
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 TestTabContentsWithExternalDelegate); 403 TestTabContentsWithExternalDelegate);
404 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, 404 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest,
405 UserHappinessFormLoadAndSubmission); 405 UserHappinessFormLoadAndSubmission);
406 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction); 406 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, UserHappinessFormInteraction);
407 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration); 407 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FormFillDuration);
408 408
409 DISALLOW_COPY_AND_ASSIGN(AutofillManager); 409 DISALLOW_COPY_AND_ASSIGN(AutofillManager);
410 }; 410 };
411 411
412 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_ 412 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_download.cc ('k') | chrome/browser/autofill/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698