blob: 58bb4dbd9db4ed03e487d54451c73ef61b5193e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// 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/basictypes.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_
|