| 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;
|
|
|