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

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

Issue 12952005: Delay bookmarks load while the profile is loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add deferred_sequenced_task_runner_unittest Created 7 years, 9 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: chrome/browser/profiles/startup_task_runner_service_factory.h
diff --git a/chrome/browser/profiles/startup_task_runner_service_factory.h b/chrome/browser/profiles/startup_task_runner_service_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7d658c3c5daf884bea1ca5afb63a11dd2513c04
--- /dev/null
+++ b/chrome/browser/profiles/startup_task_runner_service_factory.h
@@ -0,0 +1,38 @@
+// Copyright (c) 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 CHROME_BROWSER_PROFILES_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_
+#define CHROME_BROWSER_PROFILES_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_
+
+#include "base/memory/singleton.h"
+#include "chrome/browser/profiles/profile_keyed_service_factory.h"
+
+class StartupTaskRunnerService;
+class PrefRegistrySyncable;
+class Profile;
+
+// Singleton that owns the start-up task runner service.
+class StartupTaskRunnerServiceFactory : public ProfileKeyedServiceFactory {
+ public:
+ // Returns the instance of StartupTaskRunnerService associated with this
+ // profile (creating one if none exists).
+ static StartupTaskRunnerService* GetForProfile(Profile* profile);
+
+ // Returns an instance of the StartupTaskRunnerServiceFactory singleton.
+ static StartupTaskRunnerServiceFactory* GetInstance();
+
+ private:
+ friend struct DefaultSingletonTraits<StartupTaskRunnerServiceFactory>;
+
+ StartupTaskRunnerServiceFactory();
+ virtual ~StartupTaskRunnerServiceFactory();
+
+ // ProfileKeyedServiceFactory:
+ virtual ProfileKeyedService* BuildServiceInstanceFor(
+ Profile* profile) const OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(StartupTaskRunnerServiceFactory);
+};
+
+#endif // CHROME_BROWSER_PROFILES_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698