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

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_impl.h

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
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_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "chrome/browser/sync/profile_sync_components_factory.h" 13 #include "chrome/browser/sync/profile_sync_components_factory.h"
14 #include "chrome/browser/webdata/web_data_service.h" 14 #include "chrome/browser/webdata/web_data_service.h"
15 15
16 class CommandLine; 16 class CommandLine;
17 class Profile;
18
19 namespace extensions {
17 class ExtensionSystem; 20 class ExtensionSystem;
18 class Profile; 21 }
19 22
20 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory { 23 class ProfileSyncComponentsFactoryImpl : public ProfileSyncComponentsFactory {
21 public: 24 public:
22 ProfileSyncComponentsFactoryImpl(Profile* profile, 25 ProfileSyncComponentsFactoryImpl(Profile* profile,
23 CommandLine* command_line); 26 CommandLine* command_line);
24 virtual ~ProfileSyncComponentsFactoryImpl(); 27 virtual ~ProfileSyncComponentsFactoryImpl();
25 28
26 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE; 29 virtual void RegisterDataTypes(ProfileSyncService* pss) OVERRIDE;
27 30
28 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 31 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
(...skipping 30 matching lines...) Expand all
59 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; 62 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE;
60 virtual SyncComponents CreateSessionSyncComponents( 63 virtual SyncComponents CreateSessionSyncComponents(
61 ProfileSyncService* profile_sync_service, 64 ProfileSyncService* profile_sync_service,
62 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE; 65 browser_sync::DataTypeErrorHandler* error_handler) OVERRIDE;
63 66
64 private: 67 private:
65 Profile* profile_; 68 Profile* profile_;
66 CommandLine* command_line_; 69 CommandLine* command_line_;
67 // Set on the UI thread (since ExtensionSystemFactory is non-threadsafe); 70 // Set on the UI thread (since ExtensionSystemFactory is non-threadsafe);
68 // accessed on both the UI and FILE threads in GetSyncableServiceForType. 71 // accessed on both the UI and FILE threads in GetSyncableServiceForType.
69 ExtensionSystem* extension_system_; 72 extensions::ExtensionSystem* extension_system_;
70 scoped_refptr<WebDataService> web_data_service_; 73 scoped_refptr<WebDataService> web_data_service_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl); 75 DISALLOW_COPY_AND_ASSIGN(ProfileSyncComponentsFactoryImpl);
73 }; 76 };
74 77
75 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__ 78 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698