| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 params.view_id = GetRoutingID(); | 306 params.view_id = GetRoutingID(); |
| 307 params.main_frame_routing_id = main_frame_routing_id_; | 307 params.main_frame_routing_id = main_frame_routing_id_; |
| 308 params.surface_id = surface_id(); | 308 params.surface_id = surface_id(); |
| 309 params.session_storage_namespace_id = | 309 params.session_storage_namespace_id = |
| 310 delegate_->GetSessionStorageNamespace(instance_)->id(); | 310 delegate_->GetSessionStorageNamespace(instance_)->id(); |
| 311 params.frame_name = frame_name; | 311 params.frame_name = frame_name; |
| 312 // Ensure the RenderView sets its opener correctly. | 312 // Ensure the RenderView sets its opener correctly. |
| 313 params.opener_route_id = opener_route_id; | 313 params.opener_route_id = opener_route_id; |
| 314 params.swapped_out = !IsRVHStateActive(rvh_state_); | 314 params.swapped_out = !IsRVHStateActive(rvh_state_); |
| 315 params.hidden = is_hidden(); | 315 params.hidden = is_hidden(); |
| 316 params.background = |
| 317 GetContentClient()->browser()->IsRenderViewHostForBackground(this); |
| 316 params.next_page_id = next_page_id; | 318 params.next_page_id = next_page_id; |
| 317 GetWebScreenInfo(¶ms.screen_info); | 319 GetWebScreenInfo(¶ms.screen_info); |
| 318 params.accessibility_mode = accessibility_mode(); | 320 params.accessibility_mode = accessibility_mode(); |
| 319 | 321 |
| 320 Send(new ViewMsg_New(params)); | 322 Send(new ViewMsg_New(params)); |
| 321 | 323 |
| 322 // If it's enabled, tell the renderer to set up the Javascript bindings for | 324 // If it's enabled, tell the renderer to set up the Javascript bindings for |
| 323 // sending messages back to the browser. | 325 // sending messages back to the browser. |
| 324 if (GetProcess()->IsGuest()) | 326 if (GetProcess()->IsGuest()) |
| 325 DCHECK_EQ(0, enabled_bindings_); | 327 DCHECK_EQ(0, enabled_bindings_); |
| (...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 return true; | 1852 return true; |
| 1851 } | 1853 } |
| 1852 | 1854 |
| 1853 void RenderViewHostImpl::AttachToFrameTree() { | 1855 void RenderViewHostImpl::AttachToFrameTree() { |
| 1854 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1856 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1855 | 1857 |
| 1856 frame_tree->ResetForMainFrameSwap(); | 1858 frame_tree->ResetForMainFrameSwap(); |
| 1857 } | 1859 } |
| 1858 | 1860 |
| 1859 } // namespace content | 1861 } // namespace content |
| OLD | NEW |