OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/pepper/pepper_in_process_resource_creation.h" | 5 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 instance))->GetReference(); | 124 instance))->GetReference(); |
125 } | 125 } |
126 | 126 |
127 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( | 127 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( |
128 PP_Instance instance) { | 128 PP_Instance instance) { |
129 return (new ppapi::proxy::URLRequestInfoResource( | 129 return (new ppapi::proxy::URLRequestInfoResource( |
130 host_impl_->in_process_router()->GetPluginConnection(), | 130 host_impl_->in_process_router()->GetPluginConnection(), |
131 instance, ::ppapi::URLRequestInfoData()))->GetReference(); | 131 instance, ::ppapi::URLRequestInfoData()))->GetReference(); |
132 } | 132 } |
133 | 133 |
134 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( | |
135 PP_Instance instance, | |
136 const ::ppapi::URLResponseInfoData& data, | |
137 PP_Resource file_ref_resource) { | |
138 return (new ppapi::proxy::URLResponseInfoResource( | |
139 host_impl_->in_process_router()->GetPluginConnection(), | |
140 instance, data, file_ref_resource))->GetReference(); | |
141 } | |
142 | |
143 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 134 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
144 PP_Instance instance) { | 135 PP_Instance instance) { |
145 return (new ppapi::proxy::WebSocketResource( | 136 return (new ppapi::proxy::WebSocketResource( |
146 host_impl_->in_process_router()->GetPluginConnection(), | 137 host_impl_->in_process_router()->GetPluginConnection(), |
147 instance))->GetReference(); | 138 instance))->GetReference(); |
148 } | 139 } |
149 | 140 |
150 } // namespace content | 141 } // namespace content |
OLD | NEW |