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

Side by Side Diff: components/sync/engine/net/http_bridge_network_resources.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/core/http_bridge_network_resources.h" 5 #include "components/sync/engine/net/http_bridge_network_resources.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/sync/base/cancelation_signal.h" 8 #include "components/sync/base/cancelation_signal.h"
9 #include "components/sync/core/http_bridge.h" 9 #include "components/sync/engine/net/http_bridge.h"
10 #include "components/sync/core/http_post_provider_factory.h" 10 #include "components/sync/engine/net/http_post_provider_factory.h"
11 #include "net/url_request/url_request_context_getter.h" 11 #include "net/url_request/url_request_context_getter.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 14
15 HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {} 15 HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {}
16 16
17 std::unique_ptr<HttpPostProviderFactory> 17 std::unique_ptr<HttpPostProviderFactory>
18 HttpBridgeNetworkResources::GetHttpPostProviderFactory( 18 HttpBridgeNetworkResources::GetHttpPostProviderFactory(
19 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter, 19 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter,
20 const NetworkTimeUpdateCallback& network_time_update_callback, 20 const NetworkTimeUpdateCallback& network_time_update_callback,
21 CancelationSignal* cancelation_signal) { 21 CancelationSignal* cancelation_signal) {
22 return base::WrapUnique<HttpPostProviderFactory>( 22 return base::WrapUnique<HttpPostProviderFactory>(
23 new HttpBridgeFactory(baseline_context_getter, 23 new HttpBridgeFactory(baseline_context_getter,
24 network_time_update_callback, cancelation_signal)); 24 network_time_update_callback, cancelation_signal));
25 } 25 }
26 26
27 } // namespace syncer 27 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/net/http_bridge_network_resources.h ('k') | components/sync/engine/net/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698