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

Unified Diff: content/renderer/render_view_impl.cc

Issue 485103005: Preparation for removing same origin check as blink checks for the same (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO Created 6 years, 4 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_view_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_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 7cd6639666a7d3829a4e12e8a404986819ae02c1..7f06dda1c1fb5284cc6b5438a8b2fd7ea616e78c 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3923,6 +3923,7 @@ double RenderViewImpl::zoomFactorToZoomLevel(double factor) const {
return ZoomFactorToZoomLevel(factor);
}
+// TODO(sanjoy.pal): Remove once blink patch lands. http://crbug.com/406236.
void RenderViewImpl::registerProtocolHandler(const WebString& scheme,
const WebURL& base_url,
const WebURL& url,
@@ -3954,6 +3955,26 @@ void RenderViewImpl::unregisterProtocolHandler(const WebString& scheme,
user_gesture));
}
+void RenderViewImpl::registerProtocolHandler(const WebString& scheme,
+ const WebURL& url,
+ const WebString& title) {
+ bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
+ Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_,
+ base::UTF16ToUTF8(scheme),
+ url,
+ title,
+ user_gesture));
+}
+
+void RenderViewImpl::unregisterProtocolHandler(const WebString& scheme,
+ const WebURL& url) {
+ bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
+ Send(new ViewHostMsg_UnregisterProtocolHandler(routing_id_,
+ base::UTF16ToUTF8(scheme),
+ url,
+ user_gesture));
+}
+
blink::WebPageVisibilityState RenderViewImpl::visibilityState() const {
blink::WebPageVisibilityState current_state = is_hidden() ?
blink::WebPageVisibilityStateHidden :
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698