Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.h

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_OBSE RVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 static BrowserContextKeyedAPIFactory<ExtensionSyncEventObserver>* 29 static BrowserContextKeyedAPIFactory<ExtensionSyncEventObserver>*
30 GetFactoryInstance(); 30 GetFactoryInstance();
31 31
32 explicit ExtensionSyncEventObserver(content::BrowserContext* context); 32 explicit ExtensionSyncEventObserver(content::BrowserContext* context);
33 virtual ~ExtensionSyncEventObserver(); 33 virtual ~ExtensionSyncEventObserver();
34 34
35 void InitializeForService( 35 void InitializeForService(
36 sync_file_system::SyncFileSystemService* sync_service); 36 sync_file_system::SyncFileSystemService* sync_service);
37 37
38 // BrowserContextKeyedService override. 38 // KeyedService override.
39 virtual void Shutdown() OVERRIDE; 39 virtual void Shutdown() OVERRIDE;
40 40
41 // sync_file_system::SyncEventObserver interface implementation. 41 // sync_file_system::SyncEventObserver interface implementation.
42 virtual void OnSyncStateUpdated( 42 virtual void OnSyncStateUpdated(
43 const GURL& app_origin, 43 const GURL& app_origin,
44 sync_file_system::SyncServiceState state, 44 sync_file_system::SyncServiceState state,
45 const std::string& description) OVERRIDE; 45 const std::string& description) OVERRIDE;
46 46
47 virtual void OnFileSynced( 47 virtual void OnFileSynced(
48 const fileapi::FileSystemURL& url, 48 const fileapi::FileSystemURL& url,
(...skipping 24 matching lines...) Expand all
73 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver); 73 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncEventObserver);
74 }; 74 };
75 75
76 template <> 76 template <>
77 void BrowserContextKeyedAPIFactory< 77 void BrowserContextKeyedAPIFactory<
78 ExtensionSyncEventObserver>::DeclareFactoryDependencies(); 78 ExtensionSyncEventObserver>::DeclareFactoryDependencies();
79 79
80 } // namespace extensions 80 } // namespace extensions
81 81
82 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_EXTENSION_SYNC_EVENT_O BSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698