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

Unified Diff: components/user_prefs/user_prefs_delegate.h

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/user_prefs/user_prefs_delegate.h
diff --git a/components/user_prefs/user_prefs_delegate.h b/components/user_prefs/user_prefs_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..54887933ed953b85eddb93ba19d424accc1d292e
--- /dev/null
+++ b/components/user_prefs/user_prefs_delegate.h
@@ -0,0 +1,27 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_USER_PREFS_USER_PREFS_DELEGATE_H_
+#define COMPONENTS_USER_PREFS_USER_PREFS_DELEGATE_H_
+
+class PrefService;
+
+namespace content {
+class BrowserContext;
+};
tfarina 2013/02/27 15:17:50 no need of ; here
+
+namespace components {
+
+class UserPrefsDelegate {
+ public:
+ virtual ~UserPrefsDelegate() {}
tfarina 2013/02/27 15:17:50 this can't be protected, right?
+
+ // Return the PrefService associated with |context| or NULL if there is none.
+ virtual PrefService* PrefServiceFromBrowserContext(
+ content::BrowserContext* context) = 0;
+};
+
+} // namespace components
+
+#endif // COMPONENTS_USER_PREFS_USER_PREFS_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698