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

Unified Diff: components/sync/core/http_post_provider_factory.h

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. Created 4 years, 2 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 | « components/sync/core/http_bridge_unittest.cc ('k') | components/sync/core/http_post_provider_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/core/http_post_provider_factory.h
diff --git a/components/sync/core/http_post_provider_factory.h b/components/sync/core/http_post_provider_factory.h
deleted file mode 100644
index d49ac3994689fab507e953c5ae8dd3821162c306..0000000000000000000000000000000000000000
--- a/components/sync/core/http_post_provider_factory.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_FACTORY_H_
-#define COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_FACTORY_H_
-
-#include <string>
-
-#include "base/callback.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
-// implementations and dependencies.
-// A factory instance itself should be owned by whomever uses it to create
-// HttpPostProviders.
-class HttpPostProviderFactory {
- public:
- virtual ~HttpPostProviderFactory() {}
-
- 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;
-
- // When the interface is no longer needed (ready to be cleaned up), clients
- // must call Destroy().
- // This allows actual HttpPostProvider subclass implementations to be
- // reference counted, which is useful if a particular implementation uses
- // multiple threads to serve network requests.
- virtual void Destroy(HttpPostProviderInterface* http) = 0;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_CORE_HTTP_POST_PROVIDER_FACTORY_H_
« no previous file with comments | « components/sync/core/http_bridge_unittest.cc ('k') | components/sync/core/http_post_provider_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698