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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/volume_manager_factory.h

Issue 23892008: Move VolumeManager to c/b/chromeos/file_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 2013 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 #include "base/basictypes.h"
6 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H _
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H _
10
11 template<typename T> struct DefaultSingletonTraits;
12
13 namespace content {
14 class BrowserContext;
15 } // namespace content
16
17 namespace file_manager {
18
19 class VolumeManager;
20
21 // Factory to create VolumeManager.
22 class VolumeManagerFactory : public BrowserContextKeyedServiceFactory {
23 public:
24 // Returns VolumeManager instance.
25 static VolumeManager* Get(content::BrowserContext* context);
26
27 static VolumeManagerFactory* GetInstance();
28
29 protected:
30 // BrowserContextKeyedBaseFactory overrides:
31 virtual content::BrowserContext* GetBrowserContextToUse(
32 content::BrowserContext* context) const OVERRIDE;
33 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
34 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
35
36 // BrowserContextKeyedServiceFactory overrides:
37 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
38 content::BrowserContext* profile) const OVERRIDE;
39
40 private:
41 // For Singleton.
42 friend struct DefaultSingletonTraits<VolumeManagerFactory>;
43
44 VolumeManagerFactory();
45 virtual ~VolumeManagerFactory();
46
47 DISALLOW_COPY_AND_ASSIGN(VolumeManagerFactory);
48 };
49
50 } // namespace file_manager
51
52 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_VOLUME_MANAGER_FACTOR Y_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698