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

Unified Diff: chrome/browser/profiles/profile.h

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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: chrome/browser/profiles/profile.h
diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h
index 7edbee1130a64a24ff576993b6d389fef2dd20b3..412387e01c5c81dbccc58a823355570965349450 100644
--- a/chrome/browser/profiles/profile.h
+++ b/chrome/browser/profiles/profile.h
@@ -35,6 +35,7 @@ class TabContentsProvider;
}
namespace base {
+class SequencedTaskRunner;
class Time;
}
@@ -140,6 +141,10 @@ class Profile : public content::BrowserContext {
// time.
static void RegisterUserPrefs(PrefService* prefs);
+ // Gets task runner for I/O operations associated with |profile|.
+ static scoped_refptr<base::SequencedTaskRunner> GetTaskRunnerForProfile(
+ Profile* profile);
+
// Create a new profile given a path. If |create_mode| is
// CREATE_MODE_ASYNCHRONOUS then the profile is initialized asynchronously.
static Profile* CreateProfile(const FilePath& path,
@@ -157,6 +162,10 @@ class Profile : public content::BrowserContext {
// Typesafe upcast.
virtual TestingProfile* AsTestingProfile();
+ // Returns sequenced task runner where browser context dependent I/O
+ // operations should be performed.
+ virtual scoped_refptr<base::SequencedTaskRunner> GetIOTaskRunner() = 0;
+
// Returns the name associated with this profile. This name is displayed in
// the browser frame.
virtual std::string GetProfileName() = 0;

Powered by Google App Engine
This is Rietveld 408576698