OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "remoting/client/plugin/pepper_url_request.h" | 5 #include "remoting/client/plugin/pepper_url_request.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "ppapi/cpp/url_response_info.h" | 10 #include "ppapi/cpp/url_response_info.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 .Run(Result(url_loader_.GetResponseInfo().GetStatusCode(), response_)); | 104 .Run(Result(url_loader_.GetResponseInfo().GetStatusCode(), response_)); |
105 } | 105 } |
106 | 106 |
107 PepperUrlRequestFactory::PepperUrlRequestFactory(pp::InstanceHandle pp_instance) | 107 PepperUrlRequestFactory::PepperUrlRequestFactory(pp::InstanceHandle pp_instance) |
108 : pp_instance_(pp_instance) {} | 108 : pp_instance_(pp_instance) {} |
109 PepperUrlRequestFactory::~PepperUrlRequestFactory() {} | 109 PepperUrlRequestFactory::~PepperUrlRequestFactory() {} |
110 | 110 |
111 std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest( | 111 std::unique_ptr<UrlRequest> PepperUrlRequestFactory::CreateUrlRequest( |
112 UrlRequest::Type type, | 112 UrlRequest::Type type, |
113 const std::string& url) { | 113 const std::string& url) { |
114 return base::WrapUnique(new PepperUrlRequest(pp_instance_, type, url)); | 114 return base::MakeUnique<PepperUrlRequest>(pp_instance_, type, url); |
115 } | 115 } |
116 | 116 |
117 } // namespace remoting | 117 } // namespace remoting |
OLD | NEW |