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

Unified Diff: content/public/browser/content_browser_client.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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index c7fe00095eb69e338bc575553d6f6db1e7fd65a2..1560c1f65aeea3ed165f9e55a14ef6e9e7e40d38 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -192,6 +192,12 @@ class CONTENT_EXPORT ContentBrowserClient {
// protocol handlers.
virtual bool IsHandledURL(const GURL& url);
+ // Returns whether the given process is allowed to commit |url|. This is a
+ // more conservative check than IsSuitableHost, since it is used after a
+ // navigation has committed to ensure that the process did not exceed its
+ // authority.
+ virtual bool CanCommitURL(RenderProcessHost* process_host, const GURL& url);
+
// Returns whether a new view for a given |site_url| can be launched in a
// given |process_host|.
virtual bool IsSuitableHost(RenderProcessHost* process_host,
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698