Add IsSwappedOutStateForbidden() to RenderFrameHostManager and RenderFrameProxy.
commit5bf5163fcfba3568e6a60dc416542be9a343a0c5
authornick <nick@chromium.org>
Tue, 23 Jun 2015 22:45:40 +0000 (23 15:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 22:46:18 +0000 (23 22:46 +0000)
tree349e7d9a66a35afb5967d63eba85dd030a9593d3
parent17137e6622afddeaabcf911d6a118233383b5f77
Add IsSwappedOutStateForbidden() to RenderFrameHostManager and RenderFrameProxy.

The method returns true if we are in --site-per-process. Using a function
like this (instead of consulting the switch directly in so many places)
documents the fact that these --site-per-process checks are related,
makes them easier to rip out when the time comes, and simplifies
the implementation of bug 481066.

BUG=481066

Review URL: https://codereview.chromium.org/1195393007

Cr-Commit-Position: refs/heads/master@{#335781}
12 files changed:
content/browser/frame_host/frame_tree.cc
content/browser/frame_host/navigator_impl_unittest.cc
content/browser/frame_host/render_frame_host_manager.cc
content/browser/frame_host/render_frame_host_manager.h
content/browser/frame_host/render_frame_host_manager_browsertest.cc
content/browser/frame_host/render_frame_host_manager_unittest.cc
content/browser/web_contents/web_contents_impl.cc
content/browser/web_contents/web_contents_impl_unittest.cc
content/renderer/accessibility/renderer_accessibility_browsertest.cc
content/renderer/render_frame_proxy.cc
content/renderer/render_frame_proxy.h
content/renderer/render_view_browsertest.cc