| 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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) | 1619 IPC_MESSAGE_HANDLER(ViewMsg_PurgePluginListCache, OnPurgePluginListCache) |
| 1620 #endif | 1620 #endif |
| 1621 IPC_MESSAGE_UNHANDLED(handled = false) | 1621 IPC_MESSAGE_UNHANDLED(handled = false) |
| 1622 IPC_END_MESSAGE_MAP() | 1622 IPC_END_MESSAGE_MAP() |
| 1623 return handled; | 1623 return handled; |
| 1624 } | 1624 } |
| 1625 | 1625 |
| 1626 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { | 1626 void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) { |
| 1627 CompositorDependencies* compositor_deps = this; | 1627 CompositorDependencies* compositor_deps = this; |
| 1628 RenderFrameImpl::CreateFrame( | 1628 RenderFrameImpl::CreateFrame( |
| 1629 params.routing_id, params.parent_routing_id, | 1629 params.routing_id, params.proxy_routing_id, params.opener_routing_id, |
| 1630 params.previous_sibling_routing_id, params.proxy_routing_id, | 1630 params.parent_routing_id, params.previous_sibling_routing_id, |
| 1631 params.replication_state, compositor_deps, params.widget_params); | 1631 params.replication_state, compositor_deps, params.widget_params); |
| 1632 } | 1632 } |
| 1633 | 1633 |
| 1634 void RenderThreadImpl::OnCreateNewFrameProxy( | 1634 void RenderThreadImpl::OnCreateNewFrameProxy( |
| 1635 int routing_id, | 1635 int routing_id, |
| 1636 int render_view_routing_id, |
| 1637 int opener_routing_id, |
| 1636 int parent_routing_id, | 1638 int parent_routing_id, |
| 1637 int render_view_routing_id, | |
| 1638 const FrameReplicationState& replicated_state) { | 1639 const FrameReplicationState& replicated_state) { |
| 1639 RenderFrameProxy::CreateFrameProxy(routing_id, parent_routing_id, | 1640 RenderFrameProxy::CreateFrameProxy(routing_id, render_view_routing_id, |
| 1640 render_view_routing_id, replicated_state); | 1641 opener_routing_id, parent_routing_id, |
| 1642 replicated_state); |
| 1641 } | 1643 } |
| 1642 | 1644 |
| 1643 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme, | 1645 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& scheme, |
| 1644 const std::string& host, | 1646 const std::string& host, |
| 1645 double zoom_level) { | 1647 double zoom_level) { |
| 1646 RenderViewZoomer zoomer(scheme, host, zoom_level); | 1648 RenderViewZoomer zoomer(scheme, host, zoom_level); |
| 1647 RenderView::ForEach(&zoomer); | 1649 RenderView::ForEach(&zoomer); |
| 1648 } | 1650 } |
| 1649 | 1651 |
| 1650 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { | 1652 void RenderThreadImpl::OnCreateNewView(const ViewMsg_New_Params& params) { |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1955 } | 1957 } |
| 1956 | 1958 |
| 1957 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { | 1959 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { |
| 1958 size_t erased = | 1960 size_t erased = |
| 1959 RenderThreadImpl::current()->pending_render_frame_connects_.erase( | 1961 RenderThreadImpl::current()->pending_render_frame_connects_.erase( |
| 1960 routing_id_); | 1962 routing_id_); |
| 1961 DCHECK_EQ(1u, erased); | 1963 DCHECK_EQ(1u, erased); |
| 1962 } | 1964 } |
| 1963 | 1965 |
| 1964 } // namespace content | 1966 } // namespace content |
| OLD | NEW |