| 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_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_
H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_
H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_
H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTORY_
H_ |
| 7 | 7 |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.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 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // NULL. | 27 // NULL. |
| 28 static EntryWatcherService* FindExisting(content::BrowserContext* context); | 28 static EntryWatcherService* FindExisting(content::BrowserContext* context); |
| 29 | 29 |
| 30 // Gets a singleton instance of the factory. | 30 // Gets a singleton instance of the factory. |
| 31 static EntryWatcherServiceFactory* GetInstance(); | 31 static EntryWatcherServiceFactory* GetInstance(); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 friend struct DefaultSingletonTraits<EntryWatcherServiceFactory>; | 34 friend struct DefaultSingletonTraits<EntryWatcherServiceFactory>; |
| 35 | 35 |
| 36 EntryWatcherServiceFactory(); | 36 EntryWatcherServiceFactory(); |
| 37 virtual ~EntryWatcherServiceFactory(); | 37 ~EntryWatcherServiceFactory() override; |
| 38 | 38 |
| 39 // BrowserContextKeyedServiceFactory overrides: | 39 // BrowserContextKeyedServiceFactory overrides: |
| 40 virtual KeyedService* BuildServiceInstanceFor( | 40 KeyedService* BuildServiceInstanceFor( |
| 41 content::BrowserContext* profile) const override; | 41 content::BrowserContext* profile) const override; |
| 42 virtual bool ServiceIsCreatedWithBrowserContext() const override; | 42 bool ServiceIsCreatedWithBrowserContext() const override; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(EntryWatcherServiceFactory); | 44 DISALLOW_COPY_AND_ASSIGN(EntryWatcherServiceFactory); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace extensions | 47 } // namespace extensions |
| 48 | 48 |
| 49 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTO
RY_H_ | 49 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_SYSTEM_ENTRY_WATCHER_SERVICE_FACTO
RY_H_ |
| OLD | NEW |