Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(898)

Unified Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 15017018: Prevent unauthorized commits of the Chrome Web Store URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.h
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h
index 516af7e75b5fe6fa4c2323e35a61c892b965767f..c96e0f3f47aed5576a8dc0accfe49f6e24141edb 100644
--- a/content/browser/renderer_host/render_view_host_impl.h
+++ b/content/browser/renderer_host/render_view_host_impl.h
@@ -422,6 +422,11 @@ class CONTENT_EXPORT RenderViewHostImpl
return is_waiting_for_unload_ack_;
}
+ // Returns whether the given URL is allowed to commit in the current process.
+ // This is a more conservative check than FilterURL, since it will be used to
+ // kill processes that commit unauthorized URLs.
+ bool CanCommitURL(const GURL& url);
+
// Checks that the given renderer can request |url|, if not it sets it to
// about:blank.
// empty_allowed must be set to false for navigations for security reasons.
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698