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

Unified Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 1692503002: Functionality to allow blacklist and whitelist of custom schemes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments Created 4 years, 8 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/resource_dispatcher_host_delegate.h
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h
index cb40ca14da46daced7ec040515c5a983ead7a70f..e33c7ddf98c9a8aeb879cdd54d04c72209e00740 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.h
+++ b/content/public/browser/resource_dispatcher_host_delegate.h
@@ -73,14 +73,17 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate {
// Launches the url for the given tab. Returns true if an attempt to handle
// the url was made, e.g. by launching an app. Note that this does not
- // guarantee that the app successfully handled it.
+ // guarantee that the app successfully handled it. Parameter |is_whitelisted|
+ // specifies whether |url| matches a whitelist pattern defined by user. In
+ // that case it will process the |url| without asking user permission.
virtual bool HandleExternalProtocol(
const GURL& url,
int child_id,
const ResourceRequestInfo::WebContentsGetter& web_contents_getter,
bool is_main_frame,
ui::PageTransition page_transition,
- bool has_user_gesture);
+ bool has_user_gesture,
+ bool is_whitelisted);
// Returns true if we should force the given resource to be downloaded.
// Otherwise, the content layer decides.

Powered by Google App Engine
This is Rietveld 408576698