- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / sync_file_system / extension_sync_event_observer_factory.h
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.
4
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_
7
8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service_factory.h"
10
11 class Profile;
12
13 namespace extensions {
14
15 class ExtensionSyncEventObserver;
16
17 class ExtensionSyncEventObserverFactory
18     : public BrowserContextKeyedServiceFactory {
19  public:
20   static ExtensionSyncEventObserver* GetForProfile(Profile* profile);
21
22   static ExtensionSyncEventObserverFactory* GetInstance();
23
24  private:
25   friend struct DefaultSingletonTraits<ExtensionSyncEventObserverFactory>;
26
27   ExtensionSyncEventObserverFactory();
28   virtual ~ExtensionSyncEventObserverFactory();
29
30   // BrowserContextKeyedServiceFactory implementation.
31   virtual BrowserContextKeyedService* BuildServiceInstanceFor(
32       content::BrowserContext* profile) const OVERRIDE;
33 };
34
35 }  // namespace extensions
36
37 #endif  // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSERVER_FACTORY_H_