| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 
| 6 #define CHROME_BROWSER_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 
| 7 | 7 | 
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" | 
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" | 
| 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
    .h" | 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
    .h" | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
| 21     : public BrowserContextKeyedServiceFactory { | 21     : public BrowserContextKeyedServiceFactory { | 
| 22  public: | 22  public: | 
| 23   // Returns the instance of StartupTaskRunnerService associated with this | 23   // Returns the instance of StartupTaskRunnerService associated with this | 
| 24   // profile (creating one if none exists). | 24   // profile (creating one if none exists). | 
| 25   static bookmarks::StartupTaskRunnerService* GetForProfile(Profile* profile); | 25   static bookmarks::StartupTaskRunnerService* GetForProfile(Profile* profile); | 
| 26 | 26 | 
| 27   // Returns an instance of the StartupTaskRunnerServiceFactory singleton. | 27   // Returns an instance of the StartupTaskRunnerServiceFactory singleton. | 
| 28   static StartupTaskRunnerServiceFactory* GetInstance(); | 28   static StartupTaskRunnerServiceFactory* GetInstance(); | 
| 29 | 29 | 
| 30  private: | 30  private: | 
| 31   friend struct DefaultSingletonTraits<StartupTaskRunnerServiceFactory>; | 31   friend struct base::DefaultSingletonTraits<StartupTaskRunnerServiceFactory>; | 
| 32 | 32 | 
| 33   StartupTaskRunnerServiceFactory(); | 33   StartupTaskRunnerServiceFactory(); | 
| 34   ~StartupTaskRunnerServiceFactory() override; | 34   ~StartupTaskRunnerServiceFactory() override; | 
| 35 | 35 | 
| 36   // BrowserContextKeyedServiceFactory: | 36   // BrowserContextKeyedServiceFactory: | 
| 37   KeyedService* BuildServiceInstanceFor( | 37   KeyedService* BuildServiceInstanceFor( | 
| 38       content::BrowserContext* profile) const override; | 38       content::BrowserContext* profile) const override; | 
| 39 | 39 | 
| 40   DISALLOW_COPY_AND_ASSIGN(StartupTaskRunnerServiceFactory); | 40   DISALLOW_COPY_AND_ASSIGN(StartupTaskRunnerServiceFactory); | 
| 41 }; | 41 }; | 
| 42 | 42 | 
| 43 #endif  // CHROME_BROWSER_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 43 #endif  // CHROME_BROWSER_BOOKMARKS_STARTUP_TASK_RUNNER_SERVICE_FACTORY_H_ | 
| OLD | NEW | 
|---|