| 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/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "content/renderer/media/audio_device_factory.h" | 59 #include "content/renderer/media/audio_device_factory.h" |
| 60 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 60 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
| 61 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" | 61 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
| 62 #include "content/renderer/media_capture_from_element/canvas_capture_handler.h" | 62 #include "content/renderer/media_capture_from_element/canvas_capture_handler.h" |
| 63 #include "content/renderer/media_capture_from_element/html_audio_element_capture
r_source.h" | 63 #include "content/renderer/media_capture_from_element/html_audio_element_capture
r_source.h" |
| 64 #include "content/renderer/media_capture_from_element/html_video_element_capture
r_source.h" | 64 #include "content/renderer/media_capture_from_element/html_video_element_capture
r_source.h" |
| 65 #include "content/renderer/media_recorder/media_recorder_handler.h" | 65 #include "content/renderer/media_recorder/media_recorder_handler.h" |
| 66 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 66 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
| 67 #include "content/renderer/render_thread_impl.h" | 67 #include "content/renderer/render_thread_impl.h" |
| 68 #include "content/renderer/renderer_clipboard_delegate.h" | 68 #include "content/renderer/renderer_clipboard_delegate.h" |
| 69 #include "content/renderer/screen_orientation/screen_orientation_observer.h" | |
| 70 #include "content/renderer/webclipboard_impl.h" | 69 #include "content/renderer/webclipboard_impl.h" |
| 71 #include "content/renderer/webgraphicscontext3d_provider_impl.h" | 70 #include "content/renderer/webgraphicscontext3d_provider_impl.h" |
| 72 #include "content/renderer/webpublicsuffixlist_impl.h" | 71 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 73 #include "gpu/command_buffer/client/gles2_interface.h" | 72 #include "gpu/command_buffer/client/gles2_interface.h" |
| 74 #include "gpu/config/gpu_info.h" | 73 #include "gpu/config/gpu_info.h" |
| 75 #include "gpu/ipc/client/gpu_channel_host.h" | 74 #include "gpu/ipc/client/gpu_channel_host.h" |
| 76 #include "gpu/ipc/common/gpu_stream_constants.h" | 75 #include "gpu/ipc/common/gpu_stream_constants.h" |
| 77 #include "ipc/ipc_sync_message_filter.h" | 76 #include "ipc/ipc_sync_message_filter.h" |
| 78 #include "media/audio/audio_output_device.h" | 77 #include "media/audio/audio_output_device.h" |
| 79 #include "media/blink/webcontentdecryptionmodule_impl.h" | 78 #include "media/blink/webcontentdecryptionmodule_impl.h" |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 case blink::WebPlatformEventTypeDeviceMotion: | 1124 case blink::WebPlatformEventTypeDeviceMotion: |
| 1126 return base::MakeUnique<DeviceMotionEventPump>(thread); | 1125 return base::MakeUnique<DeviceMotionEventPump>(thread); |
| 1127 case blink::WebPlatformEventTypeDeviceOrientation: | 1126 case blink::WebPlatformEventTypeDeviceOrientation: |
| 1128 return base::MakeUnique<DeviceOrientationEventPump>(thread); | 1127 return base::MakeUnique<DeviceOrientationEventPump>(thread); |
| 1129 case blink::WebPlatformEventTypeDeviceOrientationAbsolute: | 1128 case blink::WebPlatformEventTypeDeviceOrientationAbsolute: |
| 1130 return base::MakeUnique<DeviceOrientationAbsoluteEventPump>(thread); | 1129 return base::MakeUnique<DeviceOrientationAbsoluteEventPump>(thread); |
| 1131 case blink::WebPlatformEventTypeDeviceLight: | 1130 case blink::WebPlatformEventTypeDeviceLight: |
| 1132 return base::MakeUnique<DeviceLightEventPump>(thread); | 1131 return base::MakeUnique<DeviceLightEventPump>(thread); |
| 1133 case blink::WebPlatformEventTypeGamepad: | 1132 case blink::WebPlatformEventTypeGamepad: |
| 1134 return base::MakeUnique<GamepadSharedMemoryReader>(thread); | 1133 return base::MakeUnique<GamepadSharedMemoryReader>(thread); |
| 1135 case blink::WebPlatformEventTypeScreenOrientation: | |
| 1136 return base::MakeUnique<ScreenOrientationObserver>(); | |
| 1137 default: | 1134 default: |
| 1138 // A default statement is required to prevent compilation errors when | 1135 // A default statement is required to prevent compilation errors when |
| 1139 // Blink adds a new type. | 1136 // Blink adds a new type. |
| 1140 DVLOG(1) << "RendererBlinkPlatformImpl::startListening() with " | 1137 DVLOG(1) << "RendererBlinkPlatformImpl::startListening() with " |
| 1141 "unknown type."; | 1138 "unknown type."; |
| 1142 } | 1139 } |
| 1143 | 1140 |
| 1144 return NULL; | 1141 return NULL; |
| 1145 } | 1142 } |
| 1146 | 1143 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 //------------------------------------------------------------------------------ | 1256 //------------------------------------------------------------------------------ |
| 1260 void RendererBlinkPlatformImpl::requestPurgeMemory() { | 1257 void RendererBlinkPlatformImpl::requestPurgeMemory() { |
| 1261 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but | 1258 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but |
| 1262 // ChildMemoryCoordinator isn't always available as it's only initialized | 1259 // ChildMemoryCoordinator isn't always available as it's only initialized |
| 1263 // when kMemoryCoordinatorV0 is enabled. | 1260 // when kMemoryCoordinatorV0 is enabled. |
| 1264 // Use ChildMemoryCoordinator when memory coordinator is always enabled. | 1261 // Use ChildMemoryCoordinator when memory coordinator is always enabled. |
| 1265 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); | 1262 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); |
| 1266 } | 1263 } |
| 1267 | 1264 |
| 1268 } // namespace content | 1265 } // namespace content |
| OLD | NEW |