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 <vector> | 10 #include <vector> |
(...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 } | 1422 } |
1423 #endif | 1423 #endif |
1424 | 1424 |
1425 void RenderThreadImpl::OnCreateNewSharedWorker( | 1425 void RenderThreadImpl::OnCreateNewSharedWorker( |
1426 const WorkerProcessMsg_CreateWorker_Params& params) { | 1426 const WorkerProcessMsg_CreateWorker_Params& params) { |
1427 // EmbeddedSharedWorkerStub will self-destruct. | 1427 // EmbeddedSharedWorkerStub will self-destruct. |
1428 new EmbeddedSharedWorkerStub(params.url, | 1428 new EmbeddedSharedWorkerStub(params.url, |
1429 params.name, | 1429 params.name, |
1430 params.content_security_policy, | 1430 params.content_security_policy, |
1431 params.security_policy_type, | 1431 params.security_policy_type, |
| 1432 params.pause_on_start, |
1432 params.route_id); | 1433 params.route_id); |
1433 } | 1434 } |
1434 | 1435 |
1435 void RenderThreadImpl::OnMemoryPressure( | 1436 void RenderThreadImpl::OnMemoryPressure( |
1436 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level) { | 1437 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level) { |
1437 base::allocator::ReleaseFreeMemory(); | 1438 base::allocator::ReleaseFreeMemory(); |
1438 | 1439 |
1439 if (memory_pressure_level == | 1440 if (memory_pressure_level == |
1440 base::MemoryPressureListener::MEMORY_PRESSURE_CRITICAL) { | 1441 base::MemoryPressureListener::MEMORY_PRESSURE_CRITICAL) { |
1441 // Trigger full v8 garbage collection on critical memory notification. | 1442 // Trigger full v8 garbage collection on critical memory notification. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 hidden_widget_count_--; | 1522 hidden_widget_count_--; |
1522 | 1523 |
1523 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1524 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
1524 return; | 1525 return; |
1525 } | 1526 } |
1526 | 1527 |
1527 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1528 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
1528 } | 1529 } |
1529 | 1530 |
1530 } // namespace content | 1531 } // namespace content |
OLD | NEW |