1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSERVER_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSERVER_FACTORY_H_
8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
13 namespace extensions {
15 class ExtensionSyncEventObserver;
17 class ExtensionSyncEventObserverFactory
18 : public BrowserContextKeyedServiceFactory {
20 static ExtensionSyncEventObserver* GetForProfile(Profile* profile);
22 static ExtensionSyncEventObserverFactory* GetInstance();
25 friend struct DefaultSingletonTraits<ExtensionSyncEventObserverFactory>;
27 ExtensionSyncEventObserverFactory();
28 virtual ~ExtensionSyncEventObserverFactory();
30 // BrowserContextKeyedServiceFactory implementation.
31 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
32 content::BrowserContext* profile) const OVERRIDE;
35 } // namespace extensions
37 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSERVER_FACTORY_H_