| 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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
| 9 #include "ppapi/proxy/audio_input_resource.h" | 9 #include "ppapi/proxy/audio_input_resource.h" |
| 10 #include "ppapi/proxy/compositor_resource.h" | 10 #include "ppapi/proxy/compositor_resource.h" |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 PP_Instance instance, | 245 PP_Instance instance, |
| 246 PP_Resource share_context, | 246 PP_Resource share_context, |
| 247 const int32_t* attrib_list) { | 247 const int32_t* attrib_list) { |
| 248 return PPB_Graphics3D_Proxy::CreateProxyResource( | 248 return PPB_Graphics3D_Proxy::CreateProxyResource( |
| 249 instance, share_context, attrib_list); | 249 instance, share_context, attrib_list); |
| 250 } | 250 } |
| 251 | 251 |
| 252 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 252 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
| 253 PP_Instance instance, | 253 PP_Instance instance, |
| 254 PP_Resource share_context, | 254 PP_Resource share_context, |
| 255 const int32_t* attrib_list) { | 255 const int32_t* attrib_list, |
| 256 base::SharedMemoryHandle* shared_state) { |
| 256 // Not proxied. The raw creation function is used only in the implementation | 257 // Not proxied. The raw creation function is used only in the implementation |
| 257 // of the proxy on the host side. | 258 // of the proxy on the host side. |
| 258 return 0; | 259 return 0; |
| 259 } | 260 } |
| 260 | 261 |
| 261 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { | 262 PP_Resource ResourceCreationProxy::CreateHostResolver(PP_Instance instance) { |
| 262 return (new HostResolverResource(GetConnection(), instance))->GetReference(); | 263 return (new HostResolverResource(GetConnection(), instance))->GetReference(); |
| 263 } | 264 } |
| 264 | 265 |
| 265 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( | 266 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate( |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 493 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 493 return false; | 494 return false; |
| 494 } | 495 } |
| 495 | 496 |
| 496 Connection ResourceCreationProxy::GetConnection() { | 497 Connection ResourceCreationProxy::GetConnection() { |
| 497 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 498 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 498 } | 499 } |
| 499 | 500 |
| 500 } // namespace proxy | 501 } // namespace proxy |
| 501 } // namespace ppapi | 502 } // namespace ppapi |
| OLD | NEW |