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/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "ppapi/shared_impl/host_resource.h" | 37 #include "ppapi/shared_impl/host_resource.h" |
38 #include "ppapi/shared_impl/ppb_audio_config_shared.h" | 38 #include "ppapi/shared_impl/ppb_audio_config_shared.h" |
39 #include "ppapi/shared_impl/ppb_input_event_shared.h" | 39 #include "ppapi/shared_impl/ppb_input_event_shared.h" |
40 #include "ppapi/shared_impl/ppb_resource_array_shared.h" | 40 #include "ppapi/shared_impl/ppb_resource_array_shared.h" |
41 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" | 41 #include "ppapi/shared_impl/ppb_url_request_info_shared.h" |
42 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" | 42 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" |
43 #include "ppapi/shared_impl/var.h" | 43 #include "ppapi/shared_impl/var.h" |
44 #include "ppapi/thunk/enter.h" | 44 #include "ppapi/thunk/enter.h" |
45 #include "ppapi/thunk/ppb_image_data_api.h" | 45 #include "ppapi/thunk/ppb_image_data_api.h" |
46 | 46 |
| 47 using ppapi::thunk::PPB_Graphics3D_API; |
47 using ppapi::thunk::ResourceCreationAPI; | 48 using ppapi::thunk::ResourceCreationAPI; |
48 | 49 |
49 namespace ppapi { | 50 namespace ppapi { |
50 namespace proxy { | 51 namespace proxy { |
51 | 52 |
52 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher) | 53 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher) |
53 : InterfaceProxy(dispatcher) { | 54 : InterfaceProxy(dispatcher) { |
54 } | 55 } |
55 | 56 |
56 ResourceCreationProxy::~ResourceCreationProxy() { | 57 ResourceCreationProxy::~ResourceCreationProxy() { |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( | 278 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( |
278 PP_Instance instance, | 279 PP_Instance instance, |
279 PPB_NetworkMonitor_Callback callback, | 280 PPB_NetworkMonitor_Callback callback, |
280 void* user_data) { | 281 void* user_data) { |
281 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( | 282 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( |
282 instance, callback, user_data); | 283 instance, callback, user_data); |
283 } | 284 } |
284 | 285 |
285 PP_Resource ResourceCreationProxy::CreateGraphics3D( | 286 PP_Resource ResourceCreationProxy::CreateGraphics3D( |
286 PP_Instance instance, | 287 PP_Instance instance, |
287 PP_Resource share_context, | 288 PPB_Graphics3D_API* share_context, |
288 const int32_t* attrib_list) { | 289 const int32_t* attrib_list) { |
289 return PPB_Graphics3D_Proxy::CreateProxyResource( | 290 return PPB_Graphics3D_Proxy::CreateProxyResource( |
290 instance, share_context, attrib_list); | 291 instance, share_context, attrib_list); |
291 } | 292 } |
292 | 293 |
293 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( | 294 PP_Resource ResourceCreationProxy::CreateGraphics3DRaw( |
294 PP_Instance instance, | 295 PP_Instance instance, |
295 PP_Resource share_context, | 296 PPB_Graphics3D_API* share_context, |
296 const int32_t* attrib_list) { | 297 const int32_t* attrib_list) { |
297 // Not proxied. The raw creation function is used only in the implementation | 298 // Not proxied. The raw creation function is used only in the implementation |
298 // of the proxy on the host side. | 299 // of the proxy on the host side. |
299 return 0; | 300 return 0; |
300 } | 301 } |
301 | 302 |
302 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, | 303 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, |
303 PP_Bool vertical) { | 304 PP_Bool vertical) { |
304 NOTIMPLEMENTED(); // Not proxied yet. | 305 NOTIMPLEMENTED(); // Not proxied yet. |
305 return 0; | 306 return 0; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 bool ResourceCreationProxy::Send(IPC::Message* msg) { | 366 bool ResourceCreationProxy::Send(IPC::Message* msg) { |
366 return dispatcher()->Send(msg); | 367 return dispatcher()->Send(msg); |
367 } | 368 } |
368 | 369 |
369 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 370 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
370 return false; | 371 return false; |
371 } | 372 } |
372 | 373 |
373 } // namespace proxy | 374 } // namespace proxy |
374 } // namespace ppapi | 375 } // namespace ppapi |
OLD | NEW |