| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 template <typename T> | 12 template <typename T> |
| 13 struct DefaultSingletonTraits; | 13 struct DefaultSingletonTraits; |
| 14 } | 14 } |
| 15 | 15 |
| 16 class Profile; | |
| 17 | |
| 18 namespace extensions { | 16 namespace extensions { |
| 19 | 17 |
| 20 class ExtensionGarbageCollector; | 18 class ExtensionGarbageCollector; |
| 21 | 19 |
| 22 class ExtensionGarbageCollectorFactory | 20 class ExtensionGarbageCollectorFactory |
| 23 : public BrowserContextKeyedServiceFactory { | 21 : public BrowserContextKeyedServiceFactory { |
| 24 public: | 22 public: |
| 25 static ExtensionGarbageCollector* GetForBrowserContext( | 23 static ExtensionGarbageCollector* GetForBrowserContext( |
| 26 content::BrowserContext* context); | 24 content::BrowserContext* context); |
| 27 | 25 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 42 | 40 |
| 43 bool ServiceIsCreatedWithBrowserContext() const override; | 41 bool ServiceIsCreatedWithBrowserContext() const override; |
| 44 bool ServiceIsNULLWhileTesting() const override; | 42 bool ServiceIsNULLWhileTesting() const override; |
| 45 | 43 |
| 46 DISALLOW_COPY_AND_ASSIGN(ExtensionGarbageCollectorFactory); | 44 DISALLOW_COPY_AND_ASSIGN(ExtensionGarbageCollectorFactory); |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 } // namespace extensions | 47 } // namespace extensions |
| 50 | 48 |
| 51 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ | 49 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GARBAGE_COLLECTOR_FACTORY_H_ |
| OLD | NEW |