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

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

Issue 2284473002: Move WebSocketHandleImpl into Blink (take 2) (Closed)
Patch Set: Rebase Created 4 years, 3 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 64 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
65 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 65 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
66 #include "content/renderer/media/rtc_certificate_generator.h" 66 #include "content/renderer/media/rtc_certificate_generator.h"
67 #include "content/renderer/mojo/blink_interface_provider_impl.h" 67 #include "content/renderer/mojo/blink_interface_provider_impl.h"
68 #include "content/renderer/render_thread_impl.h" 68 #include "content/renderer/render_thread_impl.h"
69 #include "content/renderer/renderer_clipboard_delegate.h" 69 #include "content/renderer/renderer_clipboard_delegate.h"
70 #include "content/renderer/screen_orientation/screen_orientation_observer.h" 70 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
71 #include "content/renderer/webclipboard_impl.h" 71 #include "content/renderer/webclipboard_impl.h"
72 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 72 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
73 #include "content/renderer/webpublicsuffixlist_impl.h" 73 #include "content/renderer/webpublicsuffixlist_impl.h"
74 #include "content/renderer/websockethandle_impl.h"
75 #include "gpu/command_buffer/client/gles2_interface.h" 74 #include "gpu/command_buffer/client/gles2_interface.h"
76 #include "gpu/config/gpu_info.h" 75 #include "gpu/config/gpu_info.h"
77 #include "gpu/ipc/client/gpu_channel_host.h" 76 #include "gpu/ipc/client/gpu_channel_host.h"
78 #include "gpu/ipc/common/gpu_stream_constants.h" 77 #include "gpu/ipc/common/gpu_stream_constants.h"
79 #include "ipc/ipc_sync_message_filter.h" 78 #include "ipc/ipc_sync_message_filter.h"
80 #include "media/audio/audio_output_device.h" 79 #include "media/audio/audio_output_device.h"
81 #include "media/base/mime_util.h" 80 #include "media/base/mime_util.h"
82 #include "media/blink/webcontentdecryptionmodule_impl.h" 81 #include "media/blink/webcontentdecryptionmodule_impl.h"
83 #include "media/filters/stream_parser_factory.h" 82 #include "media/filters/stream_parser_factory.h"
84 #include "mojo/common/common_type_converters.h" 83 #include "mojo/common/common_type_converters.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return GetContentClient()->renderer()->IsLinkVisited(link_hash); 391 return GetContentClient()->renderer()->IsLinkVisited(link_hash);
393 } 392 }
394 393
395 void RendererBlinkPlatformImpl::createMessageChannel( 394 void RendererBlinkPlatformImpl::createMessageChannel(
396 blink::WebMessagePortChannel** channel1, 395 blink::WebMessagePortChannel** channel1,
397 blink::WebMessagePortChannel** channel2) { 396 blink::WebMessagePortChannel** channel2) {
398 WebMessagePortChannelImpl::CreatePair( 397 WebMessagePortChannelImpl::CreatePair(
399 default_task_runner_, channel1, channel2); 398 default_task_runner_, channel1, channel2);
400 } 399 }
401 400
402 blink::WebSocketHandle* RendererBlinkPlatformImpl::createWebSocketHandle() {
403 return new WebSocketHandleImpl(loading_task_runner_);
404 }
405
406 blink::WebPrescientNetworking* 401 blink::WebPrescientNetworking*
407 RendererBlinkPlatformImpl::prescientNetworking() { 402 RendererBlinkPlatformImpl::prescientNetworking() {
408 return GetContentClient()->renderer()->GetPrescientNetworking(); 403 return GetContentClient()->renderer()->GetPrescientNetworking();
409 } 404 }
410 405
411 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, 406 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url,
412 int64_t response_time, 407 int64_t response_time,
413 const char* data, 408 const char* data,
414 size_t size) { 409 size_t size) {
415 // Let the browser know we generated cacheable metadata for this resource. The 410 // Let the browser know we generated cacheable metadata for this resource. The
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 return &trial_token_validator_; 1334 return &trial_token_validator_;
1340 } 1335 }
1341 1336
1342 void RendererBlinkPlatformImpl::workerContextCreated( 1337 void RendererBlinkPlatformImpl::workerContextCreated(
1343 const v8::Local<v8::Context>& worker) { 1338 const v8::Local<v8::Context>& worker) {
1344 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1339 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1345 worker); 1340 worker);
1346 } 1341 }
1347 1342
1348 } // namespace content 1343 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | content/renderer/websockethandle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698