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

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

Issue 2146803004: Create a content::FrameOwnerProperties struct for IPC transport of WebFrameOwnerProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Transport 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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" 70 #include "content/child/websocket_message_filter.h"
71 #include "content/child/worker_thread_registry.h" 71 #include "content/child/worker_thread_registry.h"
72 #include "content/common/child_process_messages.h" 72 #include "content/common/child_process_messages.h"
73 #include "content/common/content_constants_internal.h" 73 #include "content/common/content_constants_internal.h"
74 #include "content/common/dom_storage/dom_storage_messages.h" 74 #include "content/common/dom_storage/dom_storage_messages.h"
75 #include "content/common/frame_messages.h" 75 #include "content/common/frame_messages.h"
76 #include "content/common/frame_owner_properties.h"
76 #include "content/common/gpu/client/context_provider_command_buffer.h" 77 #include "content/common/gpu/client/context_provider_command_buffer.h"
77 #include "content/common/gpu_process_launch_causes.h" 78 #include "content/common/gpu_process_launch_causes.h"
78 #include "content/common/render_process_messages.h" 79 #include "content/common/render_process_messages.h"
79 #include "content/common/resource_messages.h" 80 #include "content/common/resource_messages.h"
80 #include "content/common/service_worker/embedded_worker_setup.mojom.h" 81 #include "content/common/service_worker/embedded_worker_setup.mojom.h"
81 #include "content/common/view_messages.h" 82 #include "content/common/view_messages.h"
82 #include "content/common/worker_messages.h" 83 #include "content/common/worker_messages.h"
83 #include "content/public/common/content_constants.h" 84 #include "content/public/common/content_constants.h"
84 #include "content/public/common/content_paths.h" 85 #include "content/public/common/content_paths.h"
85 #include "content/public/common/content_switches.h" 86 #include "content/public/common/content_switches.h"
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 is_renderer_suspended_ = true; 1736 is_renderer_suspended_ = true;
1736 renderer_scheduler_->SuspendRenderer(); 1737 renderer_scheduler_->SuspendRenderer();
1737 } 1738 }
1738 1739
1739 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { 1740 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) {
1740 CompositorDependencies* compositor_deps = this; 1741 CompositorDependencies* compositor_deps = this;
1741 RenderFrameImpl::CreateFrame( 1742 RenderFrameImpl::CreateFrame(
1742 params.routing_id, params.proxy_routing_id, params.opener_routing_id, 1743 params.routing_id, params.proxy_routing_id, params.opener_routing_id,
1743 params.parent_routing_id, params.previous_sibling_routing_id, 1744 params.parent_routing_id, params.previous_sibling_routing_id,
1744 params.replication_state, compositor_deps, params.widget_params, 1745 params.replication_state, compositor_deps, params.widget_params,
1745 params.frame_owner_properties); 1746 params.frame_owner_properties.ToWebFrameOwnerProperties());
1746 } 1747 }
1747 1748
1748 void RenderThreadImpl::OnCreateNewFrameProxy( 1749 void RenderThreadImpl::OnCreateNewFrameProxy(
1749 int routing_id, 1750 int routing_id,
1750 int render_view_routing_id, 1751 int render_view_routing_id,
1751 int opener_routing_id, 1752 int opener_routing_id,
1752 int parent_routing_id, 1753 int parent_routing_id,
1753 const FrameReplicationState& replicated_state) { 1754 const FrameReplicationState& replicated_state) {
1754 // Debug cases of https://crbug.com/575245. 1755 // Debug cases of https://crbug.com/575245.
1755 base::debug::SetCrashKeyValue("newproxy_proxy_id", 1756 base::debug::SetCrashKeyValue("newproxy_proxy_id",
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) 2229 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical)
2229 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; 2230 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate;
2230 2231
2231 blink::mainThreadIsolate()->MemoryPressureNotification( 2232 blink::mainThreadIsolate()->MemoryPressureNotification(
2232 v8_memory_pressure_level); 2233 v8_memory_pressure_level);
2233 blink::MemoryPressureNotificationToWorkerThreadIsolates( 2234 blink::MemoryPressureNotificationToWorkerThreadIsolates(
2234 v8_memory_pressure_level); 2235 v8_memory_pressure_level);
2235 } 2236 }
2236 2237
2237 } // namespace content 2238 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698