Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 68 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
69 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 69 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
70 #include "content/renderer/media/rtc_certificate_generator.h" 70 #include "content/renderer/media/rtc_certificate_generator.h"
71 #include "content/renderer/mojo/blink_service_registry_impl.h" 71 #include "content/renderer/mojo/blink_service_registry_impl.h"
72 #include "content/renderer/render_thread_impl.h" 72 #include "content/renderer/render_thread_impl.h"
73 #include "content/renderer/renderer_clipboard_delegate.h" 73 #include "content/renderer/renderer_clipboard_delegate.h"
74 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 74 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
75 #include "content/renderer/webclipboard_impl.h" 75 #include "content/renderer/webclipboard_impl.h"
76 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 76 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
77 #include "content/renderer/webpublicsuffixlist_impl.h" 77 #include "content/renderer/webpublicsuffixlist_impl.h"
78 #include "content/renderer/websockethandle_impl.h"
78 #include "gpu/command_buffer/client/gles2_interface.h" 79 #include "gpu/command_buffer/client/gles2_interface.h"
79 #include "gpu/config/gpu_info.h" 80 #include "gpu/config/gpu_info.h"
80 #include "gpu/ipc/client/gpu_channel_host.h" 81 #include "gpu/ipc/client/gpu_channel_host.h"
81 #include "gpu/ipc/common/gpu_stream_constants.h" 82 #include "gpu/ipc/common/gpu_stream_constants.h"
82 #include "ipc/ipc_sync_message_filter.h" 83 #include "ipc/ipc_sync_message_filter.h"
83 #include "media/audio/audio_output_device.h" 84 #include "media/audio/audio_output_device.h"
84 #include "media/base/mime_util.h" 85 #include "media/base/mime_util.h"
85 #include "media/blink/webcontentdecryptionmodule_impl.h" 86 #include "media/blink/webcontentdecryptionmodule_impl.h"
86 #include "media/filters/stream_parser_factory.h" 87 #include "media/filters/stream_parser_factory.h"
87 #include "mojo/common/common_type_converters.h" 88 #include "mojo/common/common_type_converters.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return GetContentClient()->renderer()->IsLinkVisited(link_hash); 393 return GetContentClient()->renderer()->IsLinkVisited(link_hash);
393 } 394 }
394 395
395 void RendererBlinkPlatformImpl::createMessageChannel( 396 void RendererBlinkPlatformImpl::createMessageChannel(
396 blink::WebMessagePortChannel** channel1, 397 blink::WebMessagePortChannel** channel1,
397 blink::WebMessagePortChannel** channel2) { 398 blink::WebMessagePortChannel** channel2) {
398 WebMessagePortChannelImpl::CreatePair( 399 WebMessagePortChannelImpl::CreatePair(
399 default_task_runner_, channel1, channel2); 400 default_task_runner_, channel1, channel2);
400 } 401 }
401 402
403 blink::WebSocketHandle* RendererBlinkPlatformImpl::createWebSocketHandle() {
404 return new WebSocketHandleImpl(serviceRegistry(), loading_task_runner_);
405 }
406
402 blink::WebPrescientNetworking* 407 blink::WebPrescientNetworking*
403 RendererBlinkPlatformImpl::prescientNetworking() { 408 RendererBlinkPlatformImpl::prescientNetworking() {
404 return GetContentClient()->renderer()->GetPrescientNetworking(); 409 return GetContentClient()->renderer()->GetPrescientNetworking();
405 } 410 }
406 411
407 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, 412 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url,
408 int64_t response_time, 413 int64_t response_time,
409 const char* data, 414 const char* data,
410 size_t size) { 415 size_t size) {
411 // Let the browser know we generated cacheable metadata for this resource. The 416 // Let the browser know we generated cacheable metadata for this resource. The
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 return &trial_token_validator_; 1321 return &trial_token_validator_;
1317 } 1322 }
1318 1323
1319 void RendererBlinkPlatformImpl::workerContextCreated( 1324 void RendererBlinkPlatformImpl::workerContextCreated(
1320 const v8::Local<v8::Context>& worker) { 1325 const v8::Local<v8::Context>& worker) {
1321 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1326 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1322 worker); 1327 worker);
1323 } 1328 }
1324 1329
1325 } // namespace content 1330 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698