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

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

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase Created 9 years, 4 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) 2011 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); 26 virtual void RegisterDataTypes(ProfileSyncService* pss);
27 27
28 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 28 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
29 browser_sync::SyncBackendHost* backend, 29 browser_sync::SyncBackendHost* backend,
30 const browser_sync::DataTypeController::TypeMap& controllers); 30 const browser_sync::DataTypeController::TypeMap* controllers);
31 31
32 virtual SyncComponents CreateAppSyncComponents( 32 virtual SyncComponents CreateAppSyncComponents(
33 ProfileSyncService* profile_sync_service, 33 ProfileSyncService* profile_sync_service,
34 browser_sync::UnrecoverableErrorHandler* error_handler); 34 browser_sync::UnrecoverableErrorHandler* error_handler);
35 35
36 virtual SyncComponents CreateAutofillSyncComponents( 36 virtual SyncComponents CreateAutofillSyncComponents(
37 ProfileSyncService* profile_sync_service, 37 ProfileSyncService* profile_sync_service,
38 WebDatabase* web_database, 38 WebDatabase* web_database,
39 PersonalDataManager* personal_data, 39 PersonalDataManager* personal_data,
40 browser_sync::UnrecoverableErrorHandler* error_handler); 40 browser_sync::UnrecoverableErrorHandler* error_handler);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 browser_sync::UnrecoverableErrorHandler* error_handler); 76 browser_sync::UnrecoverableErrorHandler* error_handler);
77 77
78 private: 78 private:
79 Profile* profile_; 79 Profile* profile_;
80 CommandLine* command_line_; 80 CommandLine* command_line_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 82 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
83 }; 83 };
84 84
85 #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