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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 73723006: Allow customization of HttpPostProviderFactory via ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix clang compile error Created 7 years 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/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index d6e9a28c8d1e372ff12cc050c8f570d1aa2118c8..9a43f6a920fbb488039c72c2bdf9149afa78000f 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -71,6 +71,7 @@ class SyncSessionSnapshot;
namespace syncer {
class BaseTransaction;
+class NetworkResources;
struct SyncCredentials;
struct UserShare;
} // namespace syncer
@@ -699,6 +700,11 @@ class ProfileSyncService
browser_sync::FaviconCache* GetFaviconCache();
+ // Overrides the NetworkResources used for Sync connections.
+ // This function takes ownership of |network_resources|.
+ void OverrideNetworkResourcesForTest(
+ scoped_ptr<syncer::NetworkResources> network_resources);
+
protected:
// Used by test classes that derive from ProfileSyncService.
virtual browser_sync::SyncBackendHost* GetBackendForTest();
@@ -1042,6 +1048,8 @@ class ProfileSyncService
scoped_ptr<SessionsSyncManager> sessions_sync_manager_;
+ scoped_ptr<syncer::NetworkResources> network_resources_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
};
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_mock.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698