| 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/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 "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ppapi/proxy/flash_resource.h" | 25 #include "ppapi/proxy/flash_resource.h" |
| 26 #include "ppapi/proxy/gamepad_resource.h" | 26 #include "ppapi/proxy/gamepad_resource.h" |
| 27 #include "ppapi/proxy/host_dispatcher.h" | 27 #include "ppapi/proxy/host_dispatcher.h" |
| 28 #include "ppapi/proxy/isolated_file_system_private_resource.h" | 28 #include "ppapi/proxy/isolated_file_system_private_resource.h" |
| 29 #include "ppapi/proxy/network_proxy_resource.h" | 29 #include "ppapi/proxy/network_proxy_resource.h" |
| 30 #include "ppapi/proxy/pdf_resource.h" | 30 #include "ppapi/proxy/pdf_resource.h" |
| 31 #include "ppapi/proxy/plugin_dispatcher.h" | 31 #include "ppapi/proxy/plugin_dispatcher.h" |
| 32 #include "ppapi/proxy/ppapi_messages.h" | 32 #include "ppapi/proxy/ppapi_messages.h" |
| 33 #include "ppapi/proxy/serialized_var.h" | 33 #include "ppapi/proxy/serialized_var.h" |
| 34 #include "ppapi/proxy/truetype_font_singleton_resource.h" | 34 #include "ppapi/proxy/truetype_font_singleton_resource.h" |
| 35 #include "ppapi/proxy/uma_private_resource.h" |
| 35 #include "ppapi/shared_impl/ppapi_globals.h" | 36 #include "ppapi/shared_impl/ppapi_globals.h" |
| 36 #include "ppapi/shared_impl/ppb_url_util_shared.h" | 37 #include "ppapi/shared_impl/ppb_url_util_shared.h" |
| 37 #include "ppapi/shared_impl/ppb_view_shared.h" | 38 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 38 #include "ppapi/shared_impl/var.h" | 39 #include "ppapi/shared_impl/var.h" |
| 39 #include "ppapi/thunk/enter.h" | 40 #include "ppapi/thunk/enter.h" |
| 40 #include "ppapi/thunk/ppb_graphics_2d_api.h" | 41 #include "ppapi/thunk/ppb_graphics_2d_api.h" |
| 41 #include "ppapi/thunk/ppb_graphics_3d_api.h" | 42 #include "ppapi/thunk/ppb_graphics_3d_api.h" |
| 42 #include "ppapi/thunk/thunk.h" | 43 #include "ppapi/thunk/thunk.h" |
| 43 | 44 |
| 44 // Windows headers interfere with this file. | 45 // Windows headers interfere with this file. |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 case ISOLATED_FILESYSTEM_SINGLETON_ID: | 383 case ISOLATED_FILESYSTEM_SINGLETON_ID: |
| 383 new_singleton = | 384 new_singleton = |
| 384 new IsolatedFileSystemPrivateResource(connection, instance); | 385 new IsolatedFileSystemPrivateResource(connection, instance); |
| 385 break; | 386 break; |
| 386 case NETWORK_PROXY_SINGLETON_ID: | 387 case NETWORK_PROXY_SINGLETON_ID: |
| 387 new_singleton = new NetworkProxyResource(connection, instance); | 388 new_singleton = new NetworkProxyResource(connection, instance); |
| 388 break; | 389 break; |
| 389 case TRUETYPE_FONT_SINGLETON_ID: | 390 case TRUETYPE_FONT_SINGLETON_ID: |
| 390 new_singleton = new TrueTypeFontSingletonResource(connection, instance); | 391 new_singleton = new TrueTypeFontSingletonResource(connection, instance); |
| 391 break; | 392 break; |
| 393 case UMA_SINGLETON_ID: |
| 394 new_singleton = new UMAPrivateResource(connection, instance); |
| 395 break; |
| 392 // Flash/trusted resources aren't needed for NaCl. | 396 // Flash/trusted resources aren't needed for NaCl. |
| 393 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 397 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 394 case BROWSER_FONT_SINGLETON_ID: | 398 case BROWSER_FONT_SINGLETON_ID: |
| 395 new_singleton = new BrowserFontSingletonResource(connection, instance); | 399 new_singleton = new BrowserFontSingletonResource(connection, instance); |
| 396 break; | 400 break; |
| 397 case FLASH_CLIPBOARD_SINGLETON_ID: | 401 case FLASH_CLIPBOARD_SINGLETON_ID: |
| 398 new_singleton = new FlashClipboardResource(connection, instance); | 402 new_singleton = new FlashClipboardResource(connection, instance); |
| 399 break; | 403 break; |
| 400 case FLASH_FILE_SINGLETON_ID: | 404 case FLASH_FILE_SINGLETON_ID: |
| 401 new_singleton = new FlashFileResource(connection, instance); | 405 new_singleton = new FlashFileResource(connection, instance); |
| (...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1277 PP_Instance instance) { | 1281 PP_Instance instance) { |
| 1278 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> | 1282 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> |
| 1279 GetInstanceData(instance); | 1283 GetInstanceData(instance); |
| 1280 if (!data) | 1284 if (!data) |
| 1281 return; // Instance was probably deleted. | 1285 return; // Instance was probably deleted. |
| 1282 data->should_do_request_surrounding_text = false; | 1286 data->should_do_request_surrounding_text = false; |
| 1283 } | 1287 } |
| 1284 | 1288 |
| 1285 } // namespace proxy | 1289 } // namespace proxy |
| 1286 } // namespace ppapi | 1290 } // namespace ppapi |
| OLD | NEW |