| 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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScrollbarTheme, OnUpdateScrollbarTheme) | 1621 IPC_MESSAGE_HANDLER(ViewMsg_UpdateScrollbarTheme, OnUpdateScrollbarTheme) |
| 1622 #endif | 1622 #endif |
| 1623 #if defined(ENABLE_PLUGINS) | 1623 #if defined(ENABLE_PLUGINS) |
| 1624 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) | 1624 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) |
| 1625 #endif | 1625 #endif |
| 1626 IPC_MESSAGE_UNHANDLED(handled = false) | 1626 IPC_MESSAGE_UNHANDLED(handled = false) |
| 1627 IPC_END_MESSAGE_MAP() | 1627 IPC_END_MESSAGE_MAP() |
| 1628 return handled; | 1628 return handled; |
| 1629 } | 1629 } |
| 1630 | 1630 |
| 1631 void RenderThreadImpl::OnProcessBackgrounded(bool backgrounded) { |
| 1632 ChildThreadImpl::OnProcessBackgrounded(backgrounded); |
| 1633 |
| 1634 if (backgrounded) |
| 1635 renderer_scheduler_->OnRendererBackgrounded(); |
| 1636 else |
| 1637 renderer_scheduler_->OnRendererForegrounded(); |
| 1638 } |
| 1639 |
| 1631 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { | 1640 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { |
| 1632 CompositorDependencies* compositor_deps = this; | 1641 CompositorDependencies* compositor_deps = this; |
| 1633 RenderFrameImpl::CreateFrame( | 1642 RenderFrameImpl::CreateFrame( |
| 1634 params.routing_id, params.parent_routing_id, | 1643 params.routing_id, params.parent_routing_id, |
| 1635 params.previous_sibling_routing_id, params.proxy_routing_id, | 1644 params.previous_sibling_routing_id, params.proxy_routing_id, |
| 1636 params.replication_state, compositor_deps, params.widget_params); | 1645 params.replication_state, compositor_deps, params.widget_params); |
| 1637 } | 1646 } |
| 1638 | 1647 |
| 1639 void RenderThreadImpl::OnCreateNewFrameProxy( | 1648 void RenderThreadImpl::OnCreateNewFrameProxy( |
| 1640 int routing_id, | 1649 int routing_id, |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1959 } | 1968 } |
| 1960 | 1969 |
| 1961 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1970 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1962 size_t erased = | 1971 size_t erased = |
| 1963 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1972 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1964 routing_id_); | 1973 routing_id_); |
| 1965 DCHECK_EQ(1u, erased); | 1974 DCHECK_EQ(1u, erased); |
| 1966 } | 1975 } |
| 1967 | 1976 |
| 1968 } // namespace content | 1977 } // namespace content |
| OLD | NEW |