summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/http_bridge_network_resources.cc
blob: 35a1e9beb877b17f1da5e695035eda7b6d8fdcc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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 "sync/internal_api/public/http_bridge_network_resources.h"

#include "base/memory/scoped_ptr.h"
#include "net/url_request/url_request_context_getter.h"
#include "sync/internal_api/public/base/cancelation_signal.h"
#include "sync/internal_api/public/http_bridge.h"
#include "sync/internal_api/public/http_post_provider_factory.h"
#include "sync/internal_api/public/network_time_update_callback.h"

namespace syncer {

HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {}

scoped_ptr<HttpPostProviderFactory>
HttpBridgeNetworkResources::GetHttpPostProviderFactory(
    const scoped_refptr<net::URLRequestContextGetter>& baseline_context_getter,
    const NetworkTimeUpdateCallback& network_time_update_callback,
    CancelationSignal* cancelation_signal) {
  return make_scoped_ptr<HttpPostProviderFactory>(
      new HttpBridgeFactory(baseline_context_getter,
                            network_time_update_callback,
                            cancelation_signal));
}

}  // namespace syncer