Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: chrome/browser/local_discovery/privet_http.cc

Issue 318283002: Added new GCD/Privet interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/local_discovery/privet_http.h" 5 #include "chrome/browser/local_discovery/privet_http.h"
6 6
7 #include "chrome/browser/local_discovery/privet_http_impl.h" 7 #include "chrome/browser/local_discovery/privet_http_impl.h"
8 8
9 namespace local_discovery { 9 namespace local_discovery {
10 10
11 // static 11 // static
12 scoped_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault( 12 scoped_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault(
13 scoped_ptr<PrivetHTTPClient> info_client) { 13 scoped_ptr<PrivetHTTPClient> info_client) {
14 if (!info_client)
15 return scoped_ptr<PrivetV1HTTPClient>();
14 return make_scoped_ptr<PrivetV1HTTPClient>( 16 return make_scoped_ptr<PrivetV1HTTPClient>(
15 new PrivetV1HTTPClientImpl(info_client.Pass())).Pass(); 17 new PrivetV1HTTPClientImpl(info_client.Pass())).Pass();
16 } 18 }
17 19
20 // static
21 scoped_ptr<PrivetV3HTTPClient> PrivetV3HTTPClient::CreateDefault(
22 scoped_ptr<PrivetHTTPClient> info_client) {
23 if (!info_client)
24 return scoped_ptr<PrivetV3HTTPClient>();
25 return make_scoped_ptr<PrivetV3HTTPClient>(
26 new PrivetV3HTTPClientImpl(info_client.Pass())).Pass();
27 }
28
18 } // namespace local_discovery 29 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698