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_plugin_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2675 // Flash APIs and some others aren't implemented in-process. | 2675 // Flash APIs and some others aren't implemented in-process. |
2676 switch (id) { | 2676 switch (id) { |
2677 case ppapi::BROKER_SINGLETON_ID: | 2677 case ppapi::BROKER_SINGLETON_ID: |
2678 case ppapi::BROWSER_FONT_SINGLETON_ID: | 2678 case ppapi::BROWSER_FONT_SINGLETON_ID: |
2679 case ppapi::FILE_MAPPING_SINGLETON_ID: | 2679 case ppapi::FILE_MAPPING_SINGLETON_ID: |
2680 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID: | 2680 case ppapi::FLASH_CLIPBOARD_SINGLETON_ID: |
2681 case ppapi::FLASH_FILE_SINGLETON_ID: | 2681 case ppapi::FLASH_FILE_SINGLETON_ID: |
2682 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID: | 2682 case ppapi::FLASH_FULLSCREEN_SINGLETON_ID: |
2683 case ppapi::FLASH_SINGLETON_ID: | 2683 case ppapi::FLASH_SINGLETON_ID: |
2684 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID: | 2684 case ppapi::ISOLATED_FILESYSTEM_SINGLETON_ID: |
| 2685 case ppapi::MOJO_SINGLETON_ID: |
2685 case ppapi::NETWORK_PROXY_SINGLETON_ID: | 2686 case ppapi::NETWORK_PROXY_SINGLETON_ID: |
2686 case ppapi::PDF_SINGLETON_ID: | 2687 case ppapi::PDF_SINGLETON_ID: |
2687 case ppapi::TRUETYPE_FONT_SINGLETON_ID: | 2688 case ppapi::TRUETYPE_FONT_SINGLETON_ID: |
2688 NOTIMPLEMENTED(); | 2689 NOTIMPLEMENTED(); |
2689 return NULL; | 2690 return NULL; |
2690 case ppapi::GAMEPAD_SINGLETON_ID: | 2691 case ppapi::GAMEPAD_SINGLETON_ID: |
2691 return gamepad_impl_.get(); | 2692 return gamepad_impl_.get(); |
2692 case ppapi::UMA_SINGLETON_ID: { | 2693 case ppapi::UMA_SINGLETON_ID: { |
2693 if (!uma_private_impl_.get()) { | 2694 if (!uma_private_impl_.get()) { |
2694 RendererPpapiHostImpl* host_impl = module_->renderer_ppapi_host(); | 2695 RendererPpapiHostImpl* host_impl = module_->renderer_ppapi_host(); |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3377 // Running out-of-process. Initiate an IPC call to notify the plugin | 3378 // Running out-of-process. Initiate an IPC call to notify the plugin |
3378 // process. | 3379 // process. |
3379 ppapi::proxy::HostDispatcher* dispatcher = | 3380 ppapi::proxy::HostDispatcher* dispatcher = |
3380 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); | 3381 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); |
3381 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( | 3382 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( |
3382 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); | 3383 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); |
3383 } | 3384 } |
3384 } | 3385 } |
3385 | 3386 |
3386 } // namespace content | 3387 } // namespace content |
OLD | NEW |