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

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

Issue 2279763003: Revert "Move WebSocketHandleImpl into Blink" (Closed)
Patch Set: 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"
74 #include "gpu/command_buffer/client/gles2_interface.h" 75 #include "gpu/command_buffer/client/gles2_interface.h"
75 #include "gpu/config/gpu_info.h" 76 #include "gpu/config/gpu_info.h"
76 #include "gpu/ipc/client/gpu_channel_host.h" 77 #include "gpu/ipc/client/gpu_channel_host.h"
77 #include "gpu/ipc/common/gpu_stream_constants.h" 78 #include "gpu/ipc/common/gpu_stream_constants.h"
78 #include "ipc/ipc_sync_message_filter.h" 79 #include "ipc/ipc_sync_message_filter.h"
79 #include "media/audio/audio_output_device.h" 80 #include "media/audio/audio_output_device.h"
80 #include "media/base/mime_util.h" 81 #include "media/base/mime_util.h"
81 #include "media/blink/webcontentdecryptionmodule_impl.h" 82 #include "media/blink/webcontentdecryptionmodule_impl.h"
82 #include "media/filters/stream_parser_factory.h" 83 #include "media/filters/stream_parser_factory.h"
83 #include "mojo/common/common_type_converters.h" 84 #include "mojo/common/common_type_converters.h"
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return GetContentClient()->renderer()->IsLinkVisited(link_hash); 392 return GetContentClient()->renderer()->IsLinkVisited(link_hash);
392 } 393 }
393 394
394 void RendererBlinkPlatformImpl::createMessageChannel( 395 void RendererBlinkPlatformImpl::createMessageChannel(
395 blink::WebMessagePortChannel** channel1, 396 blink::WebMessagePortChannel** channel1,
396 blink::WebMessagePortChannel** channel2) { 397 blink::WebMessagePortChannel** channel2) {
397 WebMessagePortChannelImpl::CreatePair( 398 WebMessagePortChannelImpl::CreatePair(
398 default_task_runner_, channel1, channel2); 399 default_task_runner_, channel1, channel2);
399 } 400 }
400 401
402 blink::WebSocketHandle* RendererBlinkPlatformImpl::createWebSocketHandle() {
403 return new WebSocketHandleImpl(loading_task_runner_);
404 }
405
401 blink::WebPrescientNetworking* 406 blink::WebPrescientNetworking*
402 RendererBlinkPlatformImpl::prescientNetworking() { 407 RendererBlinkPlatformImpl::prescientNetworking() {
403 return GetContentClient()->renderer()->GetPrescientNetworking(); 408 return GetContentClient()->renderer()->GetPrescientNetworking();
404 } 409 }
405 410
406 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, 411 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url,
407 int64_t response_time, 412 int64_t response_time,
408 const char* data, 413 const char* data,
409 size_t size) { 414 size_t size) {
410 // Let the browser know we generated cacheable metadata for this resource. The 415 // Let the browser know we generated cacheable metadata for this resource. The
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 return &trial_token_validator_; 1337 return &trial_token_validator_;
1333 } 1338 }
1334 1339
1335 void RendererBlinkPlatformImpl::workerContextCreated( 1340 void RendererBlinkPlatformImpl::workerContextCreated(
1336 const v8::Local<v8::Context>& worker) { 1341 const v8::Local<v8::Context>& worker) {
1337 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1342 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1338 worker); 1343 worker);
1339 } 1344 }
1340 1345
1341 } // namespace content 1346 } // 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