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

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 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1730 is_renderer_suspended_ = true; 1731 is_renderer_suspended_ = true;
1731 renderer_scheduler_->SuspendRenderer(); 1732 renderer_scheduler_->SuspendRenderer();
1732 } 1733 }
1733 1734
1734 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { 1735 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) {
1735 CompositorDependencies* compositor_deps = this; 1736 CompositorDependencies* compositor_deps = this;
1736 RenderFrameImpl::CreateFrame( 1737 RenderFrameImpl::CreateFrame(
1737 params.routing_id, params.proxy_routing_id, params.opener_routing_id, 1738 params.routing_id, params.proxy_routing_id, params.opener_routing_id,
1738 params.parent_routing_id, params.previous_sibling_routing_id, 1739 params.parent_routing_id, params.previous_sibling_routing_id,
1739 params.replication_state, compositor_deps, params.widget_params, 1740 params.replication_state, compositor_deps, params.widget_params,
1740 params.frame_owner_properties); 1741 params.frame_owner_properties.ToWebFrameOwnerProperties());
1741 } 1742 }
1742 1743
1743 void RenderThreadImpl::OnCreateNewFrameProxy( 1744 void RenderThreadImpl::OnCreateNewFrameProxy(
1744 int routing_id, 1745 int routing_id,
1745 int render_view_routing_id, 1746 int render_view_routing_id,
1746 int opener_routing_id, 1747 int opener_routing_id,
1747 int parent_routing_id, 1748 int parent_routing_id,
1748 const FrameReplicationState& replicated_state) { 1749 const FrameReplicationState& replicated_state) {
1749 // Debug cases of https://crbug.com/575245. 1750 // Debug cases of https://crbug.com/575245.
1750 base::debug::SetCrashKeyValue("newproxy_proxy_id", 1751 base::debug::SetCrashKeyValue("newproxy_proxy_id",
(...skipping 477 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