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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 #include "third_party/WebKit/public/platform/WebAudioLatencyHint.h" | 89 #include "third_party/WebKit/public/platform/WebAudioLatencyHint.h" |
90 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 90 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
91 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 91 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
92 #include "third_party/WebKit/public/platform/WebMediaRecorderHandler.h" | 92 #include "third_party/WebKit/public/platform/WebMediaRecorderHandler.h" |
93 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 93 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
94 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 94 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
95 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" | 95 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
96 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" | 96 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" |
97 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h" | 97 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandler.h" |
98 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 98 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
| 99 #include "third_party/WebKit/public/platform/WebSocketHandshakeThrottle.h" |
99 #include "third_party/WebKit/public/platform/WebThread.h" | 100 #include "third_party/WebKit/public/platform/WebThread.h" |
100 #include "third_party/WebKit/public/platform/WebURL.h" | 101 #include "third_party/WebKit/public/platform/WebURL.h" |
101 #include "third_party/WebKit/public/platform/WebVector.h" | 102 #include "third_party/WebKit/public/platform/WebVector.h" |
102 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionListener.h" | 103 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionListener.h" |
103 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationListener.h" | 104 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationListener.h" |
104 #include "third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h" | 105 #include "third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h" |
105 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" | 106 #include "third_party/WebKit/public/platform/scheduler/renderer/renderer_schedul
er.h" |
106 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 107 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
107 #include "url/gurl.h" | 108 #include "url/gurl.h" |
108 | 109 |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 RendererBlinkPlatformImpl::CreateImageCaptureFrameGrabber() { | 926 RendererBlinkPlatformImpl::CreateImageCaptureFrameGrabber() { |
926 #if BUILDFLAG(ENABLE_WEBRTC) | 927 #if BUILDFLAG(ENABLE_WEBRTC) |
927 return base::MakeUnique<ImageCaptureFrameGrabber>(); | 928 return base::MakeUnique<ImageCaptureFrameGrabber>(); |
928 #else | 929 #else |
929 return nullptr; | 930 return nullptr; |
930 #endif // BUILDFLAG(ENABLE_WEBRTC) | 931 #endif // BUILDFLAG(ENABLE_WEBRTC) |
931 } | 932 } |
932 | 933 |
933 //------------------------------------------------------------------------------ | 934 //------------------------------------------------------------------------------ |
934 | 935 |
| 936 std::unique_ptr<blink::WebSocketHandshakeThrottle> |
| 937 RendererBlinkPlatformImpl::CreateWebSocketHandshakeThrottle() { |
| 938 return GetContentClient()->renderer()->CreateWebSocketHandshakeThrottle(); |
| 939 } |
| 940 |
| 941 //------------------------------------------------------------------------------ |
| 942 |
935 std::unique_ptr<blink::WebSpeechSynthesizer> | 943 std::unique_ptr<blink::WebSpeechSynthesizer> |
936 RendererBlinkPlatformImpl::CreateSpeechSynthesizer( | 944 RendererBlinkPlatformImpl::CreateSpeechSynthesizer( |
937 blink::WebSpeechSynthesizerClient* client) { | 945 blink::WebSpeechSynthesizerClient* client) { |
938 return GetContentClient()->renderer()->OverrideSpeechSynthesizer(client); | 946 return GetContentClient()->renderer()->OverrideSpeechSynthesizer(client); |
939 } | 947 } |
940 | 948 |
941 //------------------------------------------------------------------------------ | 949 //------------------------------------------------------------------------------ |
942 | 950 |
943 static void Collect3DContextInformation( | 951 static void Collect3DContextInformation( |
944 blink::Platform::GraphicsInfo* gl_info, | 952 blink::Platform::GraphicsInfo* gl_info, |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 //------------------------------------------------------------------------------ | 1289 //------------------------------------------------------------------------------ |
1282 void RendererBlinkPlatformImpl::RequestPurgeMemory() { | 1290 void RendererBlinkPlatformImpl::RequestPurgeMemory() { |
1283 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but | 1291 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but |
1284 // ChildMemoryCoordinator isn't always available as it's only initialized | 1292 // ChildMemoryCoordinator isn't always available as it's only initialized |
1285 // when kMemoryCoordinatorV0 is enabled. | 1293 // when kMemoryCoordinatorV0 is enabled. |
1286 // Use ChildMemoryCoordinator when memory coordinator is always enabled. | 1294 // Use ChildMemoryCoordinator when memory coordinator is always enabled. |
1287 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); | 1295 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); |
1288 } | 1296 } |
1289 | 1297 |
1290 } // namespace content | 1298 } // namespace content |
OLD | NEW |