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

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

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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 ExtensionSettingsBackend;
16 class Profile; 15 class Profile;
17 16
18 class ProfileSyncFactoryImpl : public ProfileSyncFactory { 17 class ProfileSyncFactoryImpl : public ProfileSyncFactory {
19 public: 18 public:
20 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line); 19 ProfileSyncFactoryImpl(Profile* profile, CommandLine* command_line);
21 virtual ~ProfileSyncFactoryImpl() {} 20 virtual ~ProfileSyncFactoryImpl() {}
22 21
23 // ProfileSyncFactory interface. 22 // ProfileSyncFactory interface.
24 virtual ProfileSyncService* CreateProfileSyncService( 23 virtual ProfileSyncService* CreateProfileSyncService(
25 const std::string& cros_user); 24 const std::string& cros_user);
(...skipping 20 matching lines...) Expand all
46 WebDatabase* web_database, 45 WebDatabase* web_database,
47 browser_sync::UnrecoverableErrorHandler* error_handler); 46 browser_sync::UnrecoverableErrorHandler* error_handler);
48 47
49 virtual base::WeakPtr<SyncableService> GetAutofillProfileSyncableService( 48 virtual base::WeakPtr<SyncableService> GetAutofillProfileSyncableService(
50 WebDataService* web_data_service) const; 49 WebDataService* web_data_service) const;
51 50
52 virtual SyncComponents CreateBookmarkSyncComponents( 51 virtual SyncComponents CreateBookmarkSyncComponents(
53 ProfileSyncService* profile_sync_service, 52 ProfileSyncService* profile_sync_service,
54 browser_sync::UnrecoverableErrorHandler* error_handler); 53 browser_sync::UnrecoverableErrorHandler* error_handler);
55 54
56 virtual SyncComponents CreateExtensionSettingSyncComponents( 55 virtual SyncComponents CreateExtensionOrAppSettingSyncComponents(
57 ExtensionSettingsBackend* extension_settings_backend, 56 // Either EXTENSION_SETTING or APP_SETTING.
57 syncable::ModelType type,
58 SyncableService* settings_service,
58 ProfileSyncService* profile_sync_service, 59 ProfileSyncService* profile_sync_service,
59 browser_sync::UnrecoverableErrorHandler* error_handler); 60 browser_sync::UnrecoverableErrorHandler* error_handler);
60 61
61 virtual SyncComponents CreateExtensionSyncComponents( 62 virtual SyncComponents CreateExtensionSyncComponents(
62 ProfileSyncService* profile_sync_service, 63 ProfileSyncService* profile_sync_service,
63 browser_sync::UnrecoverableErrorHandler* error_handler); 64 browser_sync::UnrecoverableErrorHandler* error_handler);
64 65
65 virtual SyncComponents CreatePasswordSyncComponents( 66 virtual SyncComponents CreatePasswordSyncComponents(
66 ProfileSyncService* profile_sync_service, 67 ProfileSyncService* profile_sync_service,
67 PasswordStore* password_store, 68 PasswordStore* password_store,
(...skipping 25 matching lines...) Expand all
93 browser_sync::UnrecoverableErrorHandler* error_handler); 94 browser_sync::UnrecoverableErrorHandler* error_handler);
94 95
95 private: 96 private:
96 Profile* profile_; 97 Profile* profile_;
97 CommandLine* command_line_; 98 CommandLine* command_line_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 100 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
100 }; 101 };
101 102
102 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 103 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698