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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1228713003: Move protocol registration from WebViewClient to WebFrameClient, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index f9e0d27b6cda63713529379fcef821f22f0c7aa2..c78dc32ceb85730a7cedb35e455f258fb1a8ea3b 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3758,6 +3758,26 @@ blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() {
return app_banner_client_.get();
}
+void RenderFrameImpl::registerProtocolHandler(const WebString& scheme,
+ const WebURL& url,
+ const WebString& title) {
+ bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
+ Send(new FrameHostMsg_RegisterProtocolHandler(routing_id_,
+ base::UTF16ToUTF8(scheme),
+ url,
+ title,
+ user_gesture));
+}
+
+void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme,
+ const WebURL& url) {
+ bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
+ Send(new FrameHostMsg_UnregisterProtocolHandler(routing_id_,
+ base::UTF16ToUTF8(scheme),
+ url,
+ user_gesture));
+}
+
#if defined(ENABLE_WEBVR)
blink::WebVRClient* RenderFrameImpl::webVRClient() {
if (!vr_dispatcher_)
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698