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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/service_factory.h

Issue 192573002: [fsp] Introduce file_system_provider::Service class for the FileSystemProvider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_FACTORY_H_
7
8 #include <map>
9 #include <string>
10 #include <vector>
11
12 #include "base/memory/singleton.h"
13 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
14 #include "content/public/browser/browser_context.h"
15
16 namespace chromeos {
17 namespace file_system_provider {
18
19 class Service;
20
21 // Creates services per profile.
22 class ServiceFactory : public BrowserContextKeyedServiceFactory {
23 public:
24 static Service* Get(content::BrowserContext* context);
25 static ServiceFactory* GetInstance();
26
27 private:
28 friend struct DefaultSingletonTraits<ServiceFactory>;
29
30 ServiceFactory();
31 virtual ~ServiceFactory();
32
33 // BrowserContextKeyedServiceFactory overrides:
34 virtual KeyedService* BuildServiceInstanceFor(
35 content::BrowserContext* profile) const OVERRIDE;
36 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
37
38 DISALLOW_COPY_AND_ASSIGN(ServiceFactory);
39 };
40
41 } // namespace file_system_provider
42 } // namespace chromeos
43
44 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698