| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper_plugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/string_split.h" | 15 #include "base/string_split.h" |
| 16 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
| 17 #include "base/task.h" | 17 #include "base/task.h" |
| 18 #include "base/time.h" | 18 #include "base/time.h" |
| 19 #include "content/common/audio_messages.h" | 19 #include "content/common/audio_messages.h" |
| 20 #include "content/common/child_process_messages.h" | 20 #include "content/common/child_process_messages.h" |
| 21 #include "content/common/child_thread.h" | 21 #include "content/common/child_thread.h" |
| 22 #include "content/common/content_switches.h" | 22 #include "content/common/content_switches.h" |
| 23 #include "content/common/file_system/file_system_dispatcher.h" | 23 #include "content/common/file_system/file_system_dispatcher.h" |
| 24 #include "content/common/pepper_file_messages.h" | 24 #include "content/common/pepper_file_messages.h" |
| 25 #include "content/common/pepper_plugin_registry.h" | 25 #include "content/common/pepper_plugin_registry.h" |
| 26 #include "content/common/pepper_messages.h" | 26 #include "content/common/pepper_messages.h" |
| 27 #include "content/common/view_messages.h" | 27 #include "content/common/view_messages.h" |
| 28 #include "content/renderer/audio_message_filter.h" | 28 #include "content/renderer/audio_message_filter.h" |
| 29 #include "content/renderer/command_buffer_proxy.h" | |
| 30 #include "content/renderer/content_renderer_client.h" | 29 #include "content/renderer/content_renderer_client.h" |
| 31 #include "content/renderer/renderer_gl_context.h" | 30 #include "content/renderer/gpu/command_buffer_proxy.h" |
| 32 #include "content/renderer/gpu_channel_host.h" | 31 #include "content/renderer/gpu/gpu_channel_host.h" |
| 32 #include "content/renderer/gpu/renderer_gl_context.h" |
| 33 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
| 33 #include "content/renderer/p2p/p2p_transport_impl.h" | 34 #include "content/renderer/p2p/p2p_transport_impl.h" |
| 34 #include "content/renderer/pepper_platform_context_3d_impl.h" | 35 #include "content/renderer/pepper_platform_context_3d_impl.h" |
| 35 #include "content/renderer/pepper_platform_video_decoder_impl.h" | 36 #include "content/renderer/pepper_platform_video_decoder_impl.h" |
| 36 #include "content/renderer/render_thread.h" | 37 #include "content/renderer/render_thread.h" |
| 37 #include "content/renderer/render_view.h" | 38 #include "content/renderer/render_view.h" |
| 38 #include "content/renderer/render_widget_fullscreen_pepper.h" | 39 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 39 #include "content/renderer/webgraphicscontext3d_command_buffer_impl.h" | |
| 40 #include "content/renderer/webplugin_delegate_proxy.h" | 40 #include "content/renderer/webplugin_delegate_proxy.h" |
| 41 #include "ipc/ipc_channel_handle.h" | 41 #include "ipc/ipc_channel_handle.h" |
| 42 #include "ppapi/c/dev/pp_video_dev.h" | 42 #include "ppapi/c/dev/pp_video_dev.h" |
| 43 #include "ppapi/c/pp_errors.h" | 43 #include "ppapi/c/pp_errors.h" |
| 44 #include "ppapi/c/private/ppb_flash.h" | 44 #include "ppapi/c/private/ppb_flash.h" |
| 45 #include "ppapi/c/private/ppb_flash_net_connector.h" | 45 #include "ppapi/c/private/ppb_flash_net_connector.h" |
| 46 #include "ppapi/proxy/host_dispatcher.h" | 46 #include "ppapi/proxy/host_dispatcher.h" |
| 47 #include "ppapi/proxy/ppapi_messages.h" | 47 #include "ppapi/proxy/ppapi_messages.h" |
| 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserComplet
ion.h" |
| 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1312 DLOG(WARNING) << "Browser allocation request message failed"; | 1312 DLOG(WARNING) << "Browser allocation request message failed"; |
| 1313 return NULL; | 1313 return NULL; |
| 1314 } | 1314 } |
| 1315 if (!base::SharedMemory::IsHandleValid(handle)) { | 1315 if (!base::SharedMemory::IsHandleValid(handle)) { |
| 1316 DLOG(WARNING) << "Browser failed to allocate shared memory"; | 1316 DLOG(WARNING) << "Browser failed to allocate shared memory"; |
| 1317 return NULL; | 1317 return NULL; |
| 1318 } | 1318 } |
| 1319 shm.reset(new base::SharedMemory(handle, false)); | 1319 shm.reset(new base::SharedMemory(handle, false)); |
| 1320 return shm.release(); | 1320 return shm.release(); |
| 1321 } | 1321 } |
| OLD | NEW |