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

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

Issue 2119973002: Port WebSockets to Mojo IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code Created 4 years, 5 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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "content/child/child_shared_bitmap_manager.h" 60 #include "content/child/child_shared_bitmap_manager.h"
61 #include "content/child/content_child_helpers.h" 61 #include "content/child/content_child_helpers.h"
62 #include "content/child/db_message_filter.h" 62 #include "content/child/db_message_filter.h"
63 #include "content/child/indexed_db/indexed_db_dispatcher.h" 63 #include "content/child/indexed_db/indexed_db_dispatcher.h"
64 #include "content/child/indexed_db/indexed_db_message_filter.h" 64 #include "content/child/indexed_db/indexed_db_message_filter.h"
65 #include "content/child/resource_dispatcher.h" 65 #include "content/child/resource_dispatcher.h"
66 #include "content/child/resource_scheduling_filter.h" 66 #include "content/child/resource_scheduling_filter.h"
67 #include "content/child/runtime_features.h" 67 #include "content/child/runtime_features.h"
68 #include "content/child/thread_safe_sender.h" 68 #include "content/child/thread_safe_sender.h"
69 #include "content/child/web_database_observer_impl.h" 69 #include "content/child/web_database_observer_impl.h"
70 #include "content/child/websocket_message_filter.h"
71 #include "content/child/worker_thread_registry.h" 70 #include "content/child/worker_thread_registry.h"
72 #include "content/common/child_process_messages.h" 71 #include "content/common/child_process_messages.h"
73 #include "content/common/content_constants_internal.h" 72 #include "content/common/content_constants_internal.h"
74 #include "content/common/dom_storage/dom_storage_messages.h" 73 #include "content/common/dom_storage/dom_storage_messages.h"
75 #include "content/common/frame_messages.h" 74 #include "content/common/frame_messages.h"
76 #include "content/common/gpu/client/context_provider_command_buffer.h" 75 #include "content/common/gpu/client/context_provider_command_buffer.h"
77 #include "content/common/gpu_process_launch_causes.h" 76 #include "content/common/gpu_process_launch_causes.h"
78 #include "content/common/render_process_messages.h" 77 #include "content/common/render_process_messages.h"
79 #include "content/common/resource_messages.h" 78 #include "content/common/resource_messages.h"
80 #include "content/common/service_worker/embedded_worker_setup.mojom.h" 79 #include "content/common/service_worker/embedded_worker_setup.mojom.h"
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1195 resource_task_queue2, resource_dispatcher())); 1194 resource_task_queue2, resource_dispatcher()));
1196 channel()->AddFilter(filter.get()); 1195 channel()->AddFilter(filter.get());
1197 resource_dispatcher()->SetResourceSchedulingFilter(filter); 1196 resource_dispatcher()->SetResourceSchedulingFilter(filter);
1198 1197
1199 // The ChildResourceMessageFilter and the ResourceDispatcher need to use the 1198 // The ChildResourceMessageFilter and the ResourceDispatcher need to use the
1200 // same queue to ensure tasks are executed in the expected order. 1199 // same queue to ensure tasks are executed in the expected order.
1201 child_resource_message_filter()->SetMainThreadTaskRunner( 1200 child_resource_message_filter()->SetMainThreadTaskRunner(
1202 resource_task_queue2); 1201 resource_task_queue2);
1203 resource_dispatcher()->SetMainThreadTaskRunner(resource_task_queue2); 1202 resource_dispatcher()->SetMainThreadTaskRunner(resource_task_queue2);
1204 1203
1205 websocket_message_filter()->SetLoadingTaskRunner(
1206 renderer_scheduler_->LoadingTaskRunner());
1207
1208 if (!command_line.HasSwitch(switches::kDisableThreadedCompositing) && 1204 if (!command_line.HasSwitch(switches::kDisableThreadedCompositing) &&
1209 !command_line.HasSwitch(switches::kUseRemoteCompositing)) 1205 !command_line.HasSwitch(switches::kUseRemoteCompositing))
1210 InitializeCompositorThread(); 1206 InitializeCompositorThread();
1211 1207
1212 if (!input_event_filter_.get()) { 1208 if (!input_event_filter_.get()) {
1213 // Always provide an input event filter implementation to ensure consistent 1209 // Always provide an input event filter implementation to ensure consistent
1214 // input event scheduling and prioritization. 1210 // input event scheduling and prioritization.
1215 // TODO(jdduke): Merge InputEventFilter, InputHandlerManager and 1211 // TODO(jdduke): Merge InputEventFilter, InputHandlerManager and
1216 // MainThreadInputEventFilter, crbug.com/436057. 1212 // MainThreadInputEventFilter, crbug.com/436057.
1217 input_event_filter_ = new MainThreadInputEventFilter( 1213 input_event_filter_ = new MainThreadInputEventFilter(
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
2223 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) 2219 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical)
2224 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; 2220 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate;
2225 2221
2226 blink::mainThreadIsolate()->MemoryPressureNotification( 2222 blink::mainThreadIsolate()->MemoryPressureNotification(
2227 v8_memory_pressure_level); 2223 v8_memory_pressure_level);
2228 blink::MemoryPressureNotificationToWorkerThreadIsolates( 2224 blink::MemoryPressureNotificationToWorkerThreadIsolates(
2229 v8_memory_pressure_level); 2225 v8_memory_pressure_level);
2230 } 2226 }
2231 2227
2232 } // namespace content 2228 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698