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

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

Issue 2224713002: Move WebSocketHandleImpl into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue w/ Java bindings missing a dependency 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 63 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
64 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 64 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
65 #include "content/renderer/media/rtc_certificate_generator.h" 65 #include "content/renderer/media/rtc_certificate_generator.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" 69 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
70 #include "content/renderer/webclipboard_impl.h" 70 #include "content/renderer/webclipboard_impl.h"
71 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 71 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
72 #include "content/renderer/webpublicsuffixlist_impl.h" 72 #include "content/renderer/webpublicsuffixlist_impl.h"
73 #include "content/renderer/websockethandle_impl.h"
74 #include "gpu/command_buffer/client/gles2_interface.h" 73 #include "gpu/command_buffer/client/gles2_interface.h"
75 #include "gpu/config/gpu_info.h" 74 #include "gpu/config/gpu_info.h"
76 #include "gpu/ipc/client/gpu_channel_host.h" 75 #include "gpu/ipc/client/gpu_channel_host.h"
77 #include "gpu/ipc/common/gpu_stream_constants.h" 76 #include "gpu/ipc/common/gpu_stream_constants.h"
78 #include "ipc/ipc_sync_message_filter.h" 77 #include "ipc/ipc_sync_message_filter.h"
79 #include "media/audio/audio_output_device.h" 78 #include "media/audio/audio_output_device.h"
80 #include "media/base/mime_util.h" 79 #include "media/base/mime_util.h"
81 #include "media/blink/webcontentdecryptionmodule_impl.h" 80 #include "media/blink/webcontentdecryptionmodule_impl.h"
82 #include "media/filters/stream_parser_factory.h" 81 #include "media/filters/stream_parser_factory.h"
83 #include "mojo/common/common_type_converters.h" 82 #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); 390 return GetContentClient()->renderer()->IsLinkVisited(link_hash);
392 } 391 }
393 392
394 void RendererBlinkPlatformImpl::createMessageChannel( 393 void RendererBlinkPlatformImpl::createMessageChannel(
395 blink::WebMessagePortChannel** channel1, 394 blink::WebMessagePortChannel** channel1,
396 blink::WebMessagePortChannel** channel2) { 395 blink::WebMessagePortChannel** channel2) {
397 WebMessagePortChannelImpl::CreatePair( 396 WebMessagePortChannelImpl::CreatePair(
398 default_task_runner_, channel1, channel2); 397 default_task_runner_, channel1, channel2);
399 } 398 }
400 399
401 blink::WebSocketHandle* RendererBlinkPlatformImpl::createWebSocketHandle() {
402 return new WebSocketHandleImpl(loading_task_runner_);
403 }
404
405 blink::WebPrescientNetworking* 400 blink::WebPrescientNetworking*
406 RendererBlinkPlatformImpl::prescientNetworking() { 401 RendererBlinkPlatformImpl::prescientNetworking() {
407 return GetContentClient()->renderer()->GetPrescientNetworking(); 402 return GetContentClient()->renderer()->GetPrescientNetworking();
408 } 403 }
409 404
410 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url, 405 void RendererBlinkPlatformImpl::cacheMetadata(const blink::WebURL& url,
411 int64_t response_time, 406 int64_t response_time,
412 const char* data, 407 const char* data,
413 size_t size) { 408 size_t size) {
414 // Let the browser know we generated cacheable metadata for this resource. The 409 // Let the browser know we generated cacheable metadata for this resource. The
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 return &trial_token_validator_; 1312 return &trial_token_validator_;
1318 } 1313 }
1319 1314
1320 void RendererBlinkPlatformImpl::workerContextCreated( 1315 void RendererBlinkPlatformImpl::workerContextCreated(
1321 const v8::Local<v8::Context>& worker) { 1316 const v8::Local<v8::Context>& worker) {
1322 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1317 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1323 worker); 1318 worker);
1324 } 1319 }
1325 1320
1326 } // namespace content 1321 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698