| // Copyright 2014 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 "chrome/browser/local_discovery/privet_http.h" |
| |
| #include "chrome/browser/local_discovery/privet_http_impl.h" |
| |
| namespace local_discovery { |
| |
| // static |
| scoped_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault( |
| scoped_ptr<PrivetHTTPClient> info_client) { |
| if (!info_client) |
| return scoped_ptr<PrivetV1HTTPClient>(); |
| return make_scoped_ptr<PrivetV1HTTPClient>( |
| new PrivetV1HTTPClientImpl(info_client.Pass())).Pass(); |
| } |
| |
| // static |
| scoped_ptr<PrivetV3HTTPClient> PrivetV3HTTPClient::CreateDefault( |
| scoped_ptr<PrivetHTTPClient> info_client) { |
| if (!info_client) |
| return scoped_ptr<PrivetV3HTTPClient>(); |
| return make_scoped_ptr<PrivetV3HTTPClient>( |
| new PrivetV3HTTPClientImpl(info_client.Pass())).Pass(); |
| } |
| |
| } // namespace local_discovery |