diff options
author | nick <nick@chromium.org> | 2015-06-16 16:57:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-16 23:58:03 +0000 |
commit | 88299ba8fd756cee1b3e5e4d2dc10f2ff771f316 (patch) | |
tree | 083f5e5f13ac6b8d8ec7e127f9ef96f11042b879 /extensions/shell | |
parent | 43593c74e898a5fb3bd1a21f44ed1adc962bd543 (diff) | |
download | chromium_src-88299ba8fd756cee1b3e5e4d2dc10f2ff771f316.zip chromium_src-88299ba8fd756cee1b3e5e4d2dc10f2ff771f316.tar.gz chromium_src-88299ba8fd756cee1b3e5e4d2dc10f2ff771f316.tar.bz2 |
Split out content/child's SiteIsolationPolicy into two new classes.
New classes are CrossSiteDocumentClassifier and SiteIsolationStatsGatherer.
The latter employs the former. In a follow-on change I'll split these
into two files, and move CrossSiteDocumentClassifier into content/common.
SiteIsolationStatsGatherer will stay where it is.
BUG=481066, 268640
Review URL: https://codereview.chromium.org/1181493002
Cr-Commit-Position: refs/heads/master@{#334755}
Diffstat (limited to 'extensions/shell')
-rw-r--r-- | extensions/shell/renderer/shell_content_renderer_client.cc | 3 | ||||
-rw-r--r-- | extensions/shell/renderer/shell_content_renderer_client.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/extensions/shell/renderer/shell_content_renderer_client.cc b/extensions/shell/renderer/shell_content_renderer_client.cc index a123363..4ac5cfe 100644 --- a/extensions/shell/renderer/shell_content_renderer_client.cc +++ b/extensions/shell/renderer/shell_content_renderer_client.cc @@ -130,8 +130,7 @@ bool ShellContentRendererClient::IsExternalPepperPlugin( #endif } -bool ShellContentRendererClient::ShouldEnableSiteIsolationPolicy() const { - // Extension renderers don't need site isolation. +bool ShellContentRendererClient::ShouldGatherSiteIsolationStats() const { return false; } diff --git a/extensions/shell/renderer/shell_content_renderer_client.h b/extensions/shell/renderer/shell_content_renderer_client.h index 36392d5..7a1c397 100644 --- a/extensions/shell/renderer/shell_content_renderer_client.h +++ b/extensions/shell/renderer/shell_content_renderer_client.h @@ -43,7 +43,7 @@ class ShellContentRendererClient : public content::ContentRendererClient { GURL* new_url) override; const void* CreatePPAPIInterface(const std::string& interface_name) override; bool IsExternalPepperPlugin(const std::string& module_name) override; - bool ShouldEnableSiteIsolationPolicy() const override; + bool ShouldGatherSiteIsolationStats() const override; content::BrowserPluginDelegate* CreateBrowserPluginDelegate( content::RenderFrame* render_frame, const std::string& mime_type, |