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

Unified Diff: components/browser_sync/profile_sync_service.h

Issue 2658743002: [Sync] Add ProfileSyncService::GetModelTypeStoreFactory. (Closed)
Patch Set: Fix iOS PSS factory. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/profile_sync_service.h
diff --git a/components/browser_sync/profile_sync_service.h b/components/browser_sync/profile_sync_service.h
index 43c8f8bb7949c0c5b59a8edc8368ac970b256026..9d7c709fc13fee858b60ed00a00e109d77501a94 100644
--- a/components/browser_sync/profile_sync_service.h
+++ b/components/browser_sync/profile_sync_service.h
@@ -49,6 +49,7 @@
#include "components/sync/engine/sync_engine_host.h"
#include "components/sync/engine/sync_manager_factory.h"
#include "components/sync/js/sync_js_controller.h"
+#include "components/sync/model/model_type_store.h"
#include "components/sync/syncable/user_share.h"
#include "components/version_info/version_info.h"
#include "google_apis/gaia/google_service_auth_error.h"
@@ -244,7 +245,7 @@ class ProfileSyncService : public syncer::SyncServiceBase,
scoped_refptr<net::URLRequestContextGetter> url_request_context;
std::string debug_identifier;
version_info::Channel channel = version_info::Channel::UNKNOWN;
- base::SequencedWorkerPool* blocking_pool = nullptr;
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner;
base::FilePath local_sync_backend_folder;
private:
@@ -580,6 +581,11 @@ class ProfileSyncService : public syncer::SyncServiceBase,
void SetPlatformSyncAllowedProvider(
const PlatformSyncAllowedProvider& platform_sync_allowed_provider);
+ // Returns a function for |type| that will create a ModelTypeStore that shares
+ // the sync LevelDB backend.
+ syncer::ModelTypeStoreFactory GetModelTypeStoreFactory(
+ syncer::ModelType type);
+
// Needed to test whether the directory is deleted properly.
base::FilePath GetDirectoryPathForTest() const;
@@ -793,8 +799,8 @@ class ProfileSyncService : public syncer::SyncServiceBase,
// The request context in which sync should operate.
scoped_refptr<net::URLRequestContextGetter> url_request_context_;
- // Threading context.
- base::SequencedWorkerPool* blocking_pool_;
+ // The task runner to use for blocking IO operations.
+ scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
// Indicates if this is the first time sync is being configured. This value
// is equal to !IsFirstSetupComplete() at the time of OnEngineInitialized().
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698