blob: 392f90c98efc6364d7d830f1f3b3a2f68f753ef5 [file] [log] [blame]
// Copyright 2013 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.
#include "components/sync/engine/net/http_bridge_network_resources.h"
#include "base/memory/ptr_util.h"
#include "components/sync/base/cancelation_signal.h"
#include "components/sync/engine/net/http_bridge.h"
#include "components/sync/engine/net/http_post_provider_factory.h"
#include "net/url_request/url_request_context_getter.h"
namespace syncer {
HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {}
std::unique_ptr<HttpPostProviderFactory>
HttpBridgeNetworkResources::GetHttpPostProviderFactory(
const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter,
const NetworkTimeUpdateCallback& network_time_update_callback,
CancelationSignal* cancelation_signal) {
return base::WrapUnique<HttpPostProviderFactory>(
new HttpBridgeFactory(baseline_context_getter,
network_time_update_callback, cancelation_signal));
}
} // namespace syncer