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

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 598183002: Pepper: PPB_Mojo prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/ppb_instance_proxy.h" 5 #include "ppapi/proxy/ppb_instance_proxy.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "media/base/limits.h" 9 #include "media/base/limits.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 10 matching lines...) Expand all
21 #include "ppapi/proxy/enter_proxy.h" 21 #include "ppapi/proxy/enter_proxy.h"
22 #include "ppapi/proxy/file_mapping_resource.h" 22 #include "ppapi/proxy/file_mapping_resource.h"
23 #include "ppapi/proxy/flash_clipboard_resource.h" 23 #include "ppapi/proxy/flash_clipboard_resource.h"
24 #include "ppapi/proxy/flash_file_resource.h" 24 #include "ppapi/proxy/flash_file_resource.h"
25 #include "ppapi/proxy/flash_fullscreen_resource.h" 25 #include "ppapi/proxy/flash_fullscreen_resource.h"
26 #include "ppapi/proxy/flash_resource.h" 26 #include "ppapi/proxy/flash_resource.h"
27 #include "ppapi/proxy/gamepad_resource.h" 27 #include "ppapi/proxy/gamepad_resource.h"
28 #include "ppapi/proxy/host_dispatcher.h" 28 #include "ppapi/proxy/host_dispatcher.h"
29 #include "ppapi/proxy/isolated_file_system_private_resource.h" 29 #include "ppapi/proxy/isolated_file_system_private_resource.h"
30 #include "ppapi/proxy/message_handler.h" 30 #include "ppapi/proxy/message_handler.h"
31 #include "ppapi/proxy/mojo_resource.h"
31 #include "ppapi/proxy/network_proxy_resource.h" 32 #include "ppapi/proxy/network_proxy_resource.h"
32 #include "ppapi/proxy/pdf_resource.h" 33 #include "ppapi/proxy/pdf_resource.h"
33 #include "ppapi/proxy/plugin_dispatcher.h" 34 #include "ppapi/proxy/plugin_dispatcher.h"
34 #include "ppapi/proxy/ppapi_messages.h" 35 #include "ppapi/proxy/ppapi_messages.h"
35 #include "ppapi/proxy/serialized_var.h" 36 #include "ppapi/proxy/serialized_var.h"
36 #include "ppapi/proxy/truetype_font_singleton_resource.h" 37 #include "ppapi/proxy/truetype_font_singleton_resource.h"
37 #include "ppapi/proxy/uma_private_resource.h" 38 #include "ppapi/proxy/uma_private_resource.h"
38 #include "ppapi/shared_impl/array_var.h" 39 #include "ppapi/shared_impl/array_var.h"
39 #include "ppapi/shared_impl/ppapi_globals.h" 40 #include "ppapi/shared_impl/ppapi_globals.h"
40 #include "ppapi/shared_impl/ppb_url_util_shared.h" 41 #include "ppapi/shared_impl/ppb_url_util_shared.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 case FILE_MAPPING_SINGLETON_ID: 399 case FILE_MAPPING_SINGLETON_ID:
399 new_singleton = new FileMappingResource(connection, instance); 400 new_singleton = new FileMappingResource(connection, instance);
400 break; 401 break;
401 case GAMEPAD_SINGLETON_ID: 402 case GAMEPAD_SINGLETON_ID:
402 new_singleton = new GamepadResource(connection, instance); 403 new_singleton = new GamepadResource(connection, instance);
403 break; 404 break;
404 case ISOLATED_FILESYSTEM_SINGLETON_ID: 405 case ISOLATED_FILESYSTEM_SINGLETON_ID:
405 new_singleton = 406 new_singleton =
406 new IsolatedFileSystemPrivateResource(connection, instance); 407 new IsolatedFileSystemPrivateResource(connection, instance);
407 break; 408 break;
409 case MOJO_SINGLETON_ID:
410 new_singleton = new MojoResource(connection, instance);
411 break;
408 case NETWORK_PROXY_SINGLETON_ID: 412 case NETWORK_PROXY_SINGLETON_ID:
409 new_singleton = new NetworkProxyResource(connection, instance); 413 new_singleton = new NetworkProxyResource(connection, instance);
410 break; 414 break;
411 case TRUETYPE_FONT_SINGLETON_ID: 415 case TRUETYPE_FONT_SINGLETON_ID:
412 new_singleton = new TrueTypeFontSingletonResource(connection, instance); 416 new_singleton = new TrueTypeFontSingletonResource(connection, instance);
413 break; 417 break;
414 case UMA_SINGLETON_ID: 418 case UMA_SINGLETON_ID:
415 new_singleton = new UMAPrivateResource(connection, instance); 419 new_singleton = new UMAPrivateResource(connection, instance);
416 break; 420 break;
417 // Flash/trusted resources aren't needed for NaCl. 421 // Flash/trusted resources aren't needed for NaCl.
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 PP_Instance instance) { 1592 PP_Instance instance) {
1589 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1593 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1590 GetInstanceData(instance); 1594 GetInstanceData(instance);
1591 if (!data) 1595 if (!data)
1592 return; // Instance was probably deleted. 1596 return; // Instance was probably deleted.
1593 data->should_do_request_surrounding_text = false; 1597 data->should_do_request_surrounding_text = false;
1594 } 1598 }
1595 1599
1596 } // namespace proxy 1600 } // namespace proxy
1597 } // namespace ppapi 1601 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698