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

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

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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) 2010 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>
10
9 #include "base/basictypes.h" 11 #include "base/basictypes.h"
10 #include "chrome/browser/sync/profile_sync_factory.h" 12 #include "chrome/browser/sync/profile_sync_factory.h"
11 13
12 class CommandLine; 14 class CommandLine;
13 class Profile; 15 class Profile;
14 16
15 class ProfileSyncFactoryImpl : public ProfileSyncFactory { 17 class ProfileSyncFactoryImpl : public ProfileSyncFactory {
16 public: 18 public:
17 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); 19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line);
18 virtual ~ProfileSyncFactoryImpl() {} 20 virtual ~ProfileSyncFactoryImpl() {}
19 21
20 // ProfileSyncFactory interface. 22 // ProfileSyncFactory interface.
21 virtual ProfileSyncService* CreateProfileSyncService(); 23 virtual ProfileSyncService* CreateProfileSyncService(
24 const std::string& cros_user);
22 25
23 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 26 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
24 browser_sync::SyncBackendHost* backend, 27 browser_sync::SyncBackendHost* backend,
25 const browser_sync::DataTypeController::TypeMap& controllers); 28 const browser_sync::DataTypeController::TypeMap& controllers);
26 29
27 virtual SyncComponents CreateAppSyncComponents( 30 virtual SyncComponents CreateAppSyncComponents(
28 ProfileSyncService* profile_sync_service, 31 ProfileSyncService* profile_sync_service,
29 browser_sync::UnrecoverableErrorHandler* error_handler); 32 browser_sync::UnrecoverableErrorHandler* error_handler);
30 33
31 virtual SyncComponents CreateAutofillSyncComponents( 34 virtual SyncComponents CreateAutofillSyncComponents(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 browser_sync::UnrecoverableErrorHandler* error_handler); 68 browser_sync::UnrecoverableErrorHandler* error_handler);
66 69
67 private: 70 private:
68 Profile* profile_; 71 Profile* profile_;
69 CommandLine* command_line_; 72 CommandLine* command_line_;
70 73
71 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 74 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
72 }; 75 };
73 76
74 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 77 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698