1f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson// Copyright 2014 The Chromium Authors. All rights reserved.
2f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson// Use of this source code is governed by a BSD-style license that can be
3f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson// found in the LICENSE file.
4f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
5f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson#include "chrome/browser/local_discovery/privet_http.h"
6f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
7f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson#include "chrome/browser/local_discovery/privet_http_impl.h"
8f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
9f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsonnamespace local_discovery {
10f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
11f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson// static
12f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodsonscoped_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault(
13f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson    scoped_ptr<PrivetHTTPClient> info_client) {
14f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson  if (!info_client)
15f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson    return scoped_ptr<PrivetV1HTTPClient>();
16f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson  return make_scoped_ptr<PrivetV1HTTPClient>(
17f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson      new PrivetV1HTTPClientImpl(info_client.Pass())).Pass();
18f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson}
19f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson
20f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson}  // namespace local_discovery
21f4c12fce1ee58e670f9c3fce46c40296ba9ee8a2Ian Hodson