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

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

Issue 23717047: Retry: sync: Gracefully handle early shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renames Created 7 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/public/internal_components_factory.h » ('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 8e6b93ee7d0223d24267fbbdce25b13836d3d149..93466514ffb09745b01ea4f1831fac79faeceb49 100644
--- a/sync/internal_api/public/http_post_provider_factory.h
+++ b/sync/internal_api/public/http_post_provider_factory.h
@@ -5,6 +5,8 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_
#define SYNC_INTERNAL_API_PUBLIC_HTTP_POST_PROVIDER_FACTORY_H_
+#include <string>
+
#include "sync/base/sync_export.h"
namespace syncer {
@@ -19,6 +21,8 @@ class SYNC_EXPORT HttpPostProviderFactory {
public:
virtual ~HttpPostProviderFactory() {}
+ virtual void Init(const std::string& user_agent) = 0;
+
// Obtain a new HttpPostProviderInterface instance, owned by caller.
virtual HttpPostProviderInterface* Create() = 0;
@@ -28,10 +32,6 @@ class SYNC_EXPORT HttpPostProviderFactory {
// reference counted, which is useful if a particular implementation uses
// multiple threads to serve network requests.
virtual void Destroy(HttpPostProviderInterface* http) = 0;
-
- // Clean up when the factory is no longer needed. Create() must not be
- // called after Shutdown() is called. Can be called from any thread.
- virtual void Shutdown() = 0;
};
} // namespace syncer
« no previous file with comments | « sync/internal_api/public/http_bridge.h ('k') | sync/internal_api/public/internal_components_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698