| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 6 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ | 8 #ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ |
| 9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ | 9 #define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ |
| 10 | 10 |
| 11 template<typename T> struct DefaultSingletonTraits; | 11 namespace base { |
| 12 template <typename T> |
| 13 struct DefaultSingletonTraits; |
| 14 } // namespace base |
| 12 | 15 |
| 13 namespace content { | 16 namespace content { |
| 14 class BrowserContext; | 17 class BrowserContext; |
| 15 } // namespace content | 18 } // namespace content |
| 16 | 19 |
| 17 namespace file_manager { | 20 namespace file_manager { |
| 18 | 21 |
| 19 class VolumeManager; | 22 class VolumeManager; |
| 20 | 23 |
| 21 // Factory to create VolumeManager. | 24 // Factory to create VolumeManager. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 content::BrowserContext* context) const override; | 35 content::BrowserContext* context) const override; |
| 33 bool ServiceIsCreatedWithBrowserContext() const override; | 36 bool ServiceIsCreatedWithBrowserContext() const override; |
| 34 bool ServiceIsNULLWhileTesting() const override; | 37 bool ServiceIsNULLWhileTesting() const override; |
| 35 | 38 |
| 36 // BrowserContextKeyedServiceFactory overrides: | 39 // BrowserContextKeyedServiceFactory overrides: |
| 37 KeyedService* BuildServiceInstanceFor( | 40 KeyedService* BuildServiceInstanceFor( |
| 38 content::BrowserContext* context) const override; | 41 content::BrowserContext* context) const override; |
| 39 | 42 |
| 40 private: | 43 private: |
| 41 // For Singleton. | 44 // For Singleton. |
| 42 friend struct DefaultSingletonTraits<VolumeManagerFactory>; | 45 friend struct base::DefaultSingletonTraits<VolumeManagerFactory>; |
| 43 | 46 |
| 44 VolumeManagerFactory(); | 47 VolumeManagerFactory(); |
| 45 ~VolumeManagerFactory() override; | 48 ~VolumeManagerFactory() override; |
| 46 | 49 |
| 47 DISALLOW_COPY_AND_ASSIGN(VolumeManagerFactory); | 50 DISALLOW_COPY_AND_ASSIGN(VolumeManagerFactory); |
| 48 }; | 51 }; |
| 49 | 52 |
| 50 } // namespace file_manager | 53 } // namespace file_manager |
| 51 | 54 |
| 52 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_ |
| OLD | NEW |