OLD | NEW |
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 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2203 NOTREACHED(); | 2203 NOTREACHED(); |
2204 #endif | 2204 #endif |
2205 } | 2205 } |
2206 | 2206 |
2207 void RenderThreadImpl::OnCreateNewSharedWorker( | 2207 void RenderThreadImpl::OnCreateNewSharedWorker( |
2208 const WorkerProcessMsg_CreateWorker_Params& params) { | 2208 const WorkerProcessMsg_CreateWorker_Params& params) { |
2209 // EmbeddedSharedWorkerStub will self-destruct. | 2209 // EmbeddedSharedWorkerStub will self-destruct. |
2210 new EmbeddedSharedWorkerStub( | 2210 new EmbeddedSharedWorkerStub( |
2211 params.url, params.name, params.content_security_policy, | 2211 params.url, params.name, params.content_security_policy, |
2212 params.security_policy_type, params.creation_address_space, | 2212 params.security_policy_type, params.creation_address_space, |
2213 params.pause_on_start, params.route_id); | 2213 params.pause_on_start, params.route_id, params.data_saver_enabled); |
2214 } | 2214 } |
2215 | 2215 |
2216 void RenderThreadImpl::OnMemoryPressure( | 2216 void RenderThreadImpl::OnMemoryPressure( |
2217 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level) { | 2217 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level) { |
2218 TRACE_EVENT0("memory","RenderThreadImpl::OnMemoryPressure"); | 2218 TRACE_EVENT0("memory","RenderThreadImpl::OnMemoryPressure"); |
2219 if (blink_platform_impl_) { | 2219 if (blink_platform_impl_) { |
2220 blink::WebMemoryCoordinator::OnMemoryPressure( | 2220 blink::WebMemoryCoordinator::OnMemoryPressure( |
2221 static_cast<blink::WebMemoryPressureLevel>(memory_pressure_level)); | 2221 static_cast<blink::WebMemoryPressureLevel>(memory_pressure_level)); |
2222 } | 2222 } |
2223 if (memory_pressure_level == | 2223 if (memory_pressure_level == |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2458 } | 2458 } |
2459 } | 2459 } |
2460 | 2460 |
2461 void RenderThreadImpl::OnRendererInterfaceRequest( | 2461 void RenderThreadImpl::OnRendererInterfaceRequest( |
2462 mojom::RendererAssociatedRequest request) { | 2462 mojom::RendererAssociatedRequest request) { |
2463 DCHECK(!renderer_binding_.is_bound()); | 2463 DCHECK(!renderer_binding_.is_bound()); |
2464 renderer_binding_.Bind(std::move(request)); | 2464 renderer_binding_.Bind(std::move(request)); |
2465 } | 2465 } |
2466 | 2466 |
2467 } // namespace content | 2467 } // namespace content |
OLD | NEW |