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

Unified Diff: sync/internal_api/public/http_post_provider_factory.h

Issue 1330443002: Report data usage UMA for Chrome services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NewArchServices
Patch Set: Fix calling Init function in sync_client.cc Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/http_post_provider_factory.h
diff --git a/sync/internal_api/public/http_post_provider_factory.h b/sync/internal_api/public/http_post_provider_factory.h
index 93466514ffb09745b01ea4f1831fac79faeceb49..ef6af9bbfc8e5b3039e2da253282588b67db8412 100644
--- a/sync/internal_api/public/http_post_provider_factory.h
+++ b/sync/internal_api/public/http_post_provider_factory.h
@@ -7,10 +7,17 @@
#include <string>
+#include "base/callback.h"
#include "sync/base/sync_export.h"
+namespace net {
+class URLFetcher;
+}
+
namespace syncer {
+typedef base::Callback<void(net::URLFetcher*)> BindToTrackerCallback;
+
class HttpPostProviderInterface;
// A factory to create HttpPostProviders to hide details about the
@@ -21,7 +28,8 @@ class SYNC_EXPORT HttpPostProviderFactory {
public:
virtual ~HttpPostProviderFactory() {}
- virtual void Init(const std::string& user_agent) = 0;
+ virtual void Init(const std::string& user_agent,
+ const BindToTrackerCallback& bind_to_tracker_callback) = 0;
// Obtain a new HttpPostProviderInterface instance, owned by caller.
virtual HttpPostProviderInterface* Create() = 0;
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698