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

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

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_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 "chrome/browser/sync/profile_sync_factory.h" 12 #include "chrome/browser/sync/profile_sync_factory.h"
13 13
14 class CommandLine; 14 class CommandLine;
15 class Profile; 15 class Profile;
16 16
17 class ProfileSyncFactoryImpl : public ProfileSyncFactory { 17 class ProfileSyncFactoryImpl : public ProfileSyncFactory {
18 public: 18 public:
19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); 19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line);
20 virtual ~ProfileSyncFactoryImpl() {} 20 virtual ~ProfileSyncFactoryImpl() {}
21 21
22 // ProfileSyncFactory interface. 22 // ProfileSyncFactory interface.
23 virtual ProfileSyncService* CreateProfileSyncService( 23 virtual ProfileSyncService* CreateProfileSyncService(
24 const std::string& cros_user); 24 const std::string& cros_user);
25 25
26 virtual void RegisterDataTypes(ProfileSyncService* pss);
27
26 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 28 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
27 browser_sync::SyncBackendHost* backend, 29 browser_sync::SyncBackendHost* backend,
28 const browser_sync::DataTypeController::TypeMap& controllers); 30 const browser_sync::DataTypeController::TypeMap& controllers);
29 31
30 virtual SyncComponents CreateAppSyncComponents( 32 virtual SyncComponents CreateAppSyncComponents(
31 ProfileSyncService* profile_sync_service, 33 ProfileSyncService* profile_sync_service,
32 browser_sync::UnrecoverableErrorHandler* error_handler); 34 browser_sync::UnrecoverableErrorHandler* error_handler);
33 35
34 virtual SyncComponents CreateAutofillSyncComponents( 36 virtual SyncComponents CreateAutofillSyncComponents(
35 ProfileSyncService* profile_sync_service, 37 ProfileSyncService* profile_sync_service,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 browser_sync::UnrecoverableErrorHandler* error_handler); 76 browser_sync::UnrecoverableErrorHandler* error_handler);
75 77
76 private: 78 private:
77 Profile* profile_; 79 Profile* profile_;
78 CommandLine* command_line_; 80 CommandLine* command_line_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 82 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
81 }; 83 };
82 84
83 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 85 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_factory.h ('k') | chrome/browser/sync/profile_sync_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698