OLD | NEW |
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 "sync/internal_api/public/http_bridge_network_resources.h" | 5 #include "components/sync/core/http_bridge_network_resources.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "components/sync/base/cancelation_signal.h" |
| 11 #include "components/sync/core/http_bridge.h" |
| 12 #include "components/sync/core/http_post_provider_factory.h" |
| 13 #include "components/sync/core/network_time_update_callback.h" |
10 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
11 #include "sync/internal_api/public/base/cancelation_signal.h" | |
12 #include "sync/internal_api/public/http_bridge.h" | |
13 #include "sync/internal_api/public/http_post_provider_factory.h" | |
14 #include "sync/internal_api/public/network_time_update_callback.h" | |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 | 17 |
18 HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {} | 18 HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {} |
19 | 19 |
20 std::unique_ptr<HttpPostProviderFactory> | 20 std::unique_ptr<HttpPostProviderFactory> |
21 HttpBridgeNetworkResources::GetHttpPostProviderFactory( | 21 HttpBridgeNetworkResources::GetHttpPostProviderFactory( |
22 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter, | 22 const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter, |
23 const NetworkTimeUpdateCallback& network_time_update_callback, | 23 const NetworkTimeUpdateCallback& network_time_update_callback, |
24 CancelationSignal* cancelation_signal) { | 24 CancelationSignal* cancelation_signal) { |
25 return base::WrapUnique<HttpPostProviderFactory>( | 25 return base::WrapUnique<HttpPostProviderFactory>( |
26 new HttpBridgeFactory(baseline_context_getter, | 26 new HttpBridgeFactory(baseline_context_getter, |
27 network_time_update_callback, cancelation_signal)); | 27 network_time_update_callback, cancelation_signal)); |
28 } | 28 } |
29 | 29 |
30 } // namespace syncer | 30 } // namespace syncer |
OLD | NEW |