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

Issue 9978015: Make browser_handles_top_level_requests synchronous. (Closed)

Created:
8 years, 8 months ago by mkosiba (inactive)
Modified:
8 years, 8 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Make browser_handles_top_level_requests synchronous. Currently if the browser_handles_top_level_requests renderer pref is set the top level navigations are unconditionally ignore at the renderer level and re-initiated from the browser. This change makes it possible to ignore only certain navigations and let the others continue uninterrupted. The change is needed to implement Android url interception where for certain http(s):// URLs we want to handle it in an external application. BUG=121956 TEST=None

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix forward declaration #

Patch Set 3 : fix windows build error #

Patch Set 4 : fix build error #

Total comments: 17

Patch Set 5 : incorporate feedback #

Total comments: 3

Patch Set 6 : external_tab_container_feedback #

Total comments: 2

Patch Set 7 : ExternalTabContainer::ShouldIgnoreNavigation returns true if is_content_initiated #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -59 lines) Patch
M chrome/browser/external_tab/external_tab_container_win.h View 1 2 3 4 5 5 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/external_tab/external_tab_container_win.cc View 1 2 3 4 5 6 3 chunks +82 lines, -51 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 2 chunks +17 lines, -0 lines 2 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 chunk +10 lines, -0 lines 0 comments Download
M content/public/browser/render_view_host_delegate.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/render_view_host_delegate.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mkosiba (inactive)
This is the change I was talking about in the WebContentsDelegate::OpenURLFromTab chromium-dev thread. There don't ...
8 years, 8 months ago (2012-04-04 20:09:13 UTC) #1
Charlie Reis
https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc#newcode2345 content/renderer/render_view_impl.cc:2345: return WebKit::WebNavigationPolicyIgnore; Darin, can you take a look at ...
8 years, 8 months ago (2012-04-04 20:23:22 UTC) #2
mkosiba (inactive)
https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc#newcode2345 content/renderer/render_view_impl.cc:2345: return WebKit::WebNavigationPolicyIgnore; On 2012/04/04 20:23:22, creis wrote: > Darin, ...
8 years, 8 months ago (2012-04-04 20:40:45 UTC) #3
Charlie Reis
https://chromiumcodereview.appspot.com/9978015/diff/13001/chrome/browser/external_tab/external_tab_container_win.cc File chrome/browser/external_tab/external_tab_container_win.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/13001/chrome/browser/external_tab/external_tab_container_win.cc#newcode416 chrome/browser/external_tab/external_tab_container_win.cc:416: bool is_content_intiated, nit: initiated https://chromiumcodereview.appspot.com/9978015/diff/13001/chrome/browser/external_tab/external_tab_container_win.cc#newcode420 chrome/browser/external_tab/external_tab_container_win.cc:420: // and re-issuing ...
8 years, 8 months ago (2012-04-05 17:06:53 UTC) #4
groby-ooo-7-16
Mostly nits - trust creis/darin, not me. This is not a code area I'm very ...
8 years, 8 months ago (2012-04-05 22:51:19 UTC) #5
mkosiba (inactive)
Anantha, Could you please take a look at the changes I've made to external_tab_container? I ...
8 years, 8 months ago (2012-04-10 17:58:37 UTC) #6
ananta
https://chromiumcodereview.appspot.com/9978015/diff/16001/chrome/browser/external_tab/external_tab_container_win.cc File chrome/browser/external_tab/external_tab_container_win.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/16001/chrome/browser/external_tab/external_tab_container_win.cc#newcode423 chrome/browser/external_tab/external_tab_container_win.cc:423: source->GetController().LoadURL(url, referrer, transition_type, In ChromeFrame's case we want the ...
8 years, 8 months ago (2012-04-10 19:45:45 UTC) #7
mkosiba (inactive)
https://chromiumcodereview.appspot.com/9978015/diff/16001/chrome/browser/external_tab/external_tab_container_win.cc File chrome/browser/external_tab/external_tab_container_win.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/16001/chrome/browser/external_tab/external_tab_container_win.cc#newcode423 chrome/browser/external_tab/external_tab_container_win.cc:423: source->GetController().LoadURL(url, referrer, transition_type, On 2012/04/10 19:45:45, ananta wrote: > ...
8 years, 8 months ago (2012-04-11 13:49:35 UTC) #8
ananta
https://chromiumcodereview.appspot.com/9978015/diff/22001/chrome/browser/external_tab/external_tab_container_win.cc File chrome/browser/external_tab/external_tab_container_win.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/22001/chrome/browser/external_tab/external_tab_container_win.cc#newcode376 chrome/browser/external_tab/external_tab_container_win.cc:376: return (NULL == OpenUrlInExtenalHost(source, url, disposition, referrer)); The OpenUrlInExtenalHost ...
8 years, 8 months ago (2012-04-11 23:08:05 UTC) #9
mkosiba (inactive)
https://chromiumcodereview.appspot.com/9978015/diff/22001/chrome/browser/external_tab/external_tab_container_win.cc File chrome/browser/external_tab/external_tab_container_win.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/22001/chrome/browser/external_tab/external_tab_container_win.cc#newcode376 chrome/browser/external_tab/external_tab_container_win.cc:376: return (NULL == OpenUrlInExtenalHost(source, url, disposition, referrer)); On 2012/04/11 ...
8 years, 8 months ago (2012-04-12 10:12:52 UTC) #10
mkosiba (inactive)
8 years, 8 months ago (2012-04-12 12:03:55 UTC) #11
ananta
LGTM
8 years, 8 months ago (2012-04-13 17:52:13 UTC) #12
Charlie Reis
On 2012/04/04 20:23:22, creis wrote: > https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://chromiumcodereview.appspot.com/9978015/diff/1/content/renderer/render_view_impl.cc#newcode2345 > ...
8 years, 8 months ago (2012-04-13 18:21:52 UTC) #13
darin (slow to review)
https://chromiumcodereview.appspot.com/9978015/diff/26001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/26001/content/browser/renderer_host/render_view_host_impl.cc#newcode1164 content/browser/renderer_host/render_view_host_impl.cc:1164: This creates a dead-lock. It is not valid to ...
8 years, 8 months ago (2012-04-16 15:47:11 UTC) #14
mkosiba (inactive)
https://chromiumcodereview.appspot.com/9978015/diff/26001/content/browser/renderer_host/render_view_host_impl.cc File content/browser/renderer_host/render_view_host_impl.cc (right): https://chromiumcodereview.appspot.com/9978015/diff/26001/content/browser/renderer_host/render_view_host_impl.cc#newcode1164 content/browser/renderer_host/render_view_host_impl.cc:1164: On 2012/04/16 15:47:11, darin wrote: > This creates a ...
8 years, 8 months ago (2012-04-16 16:15:07 UTC) #15
darin (slow to review)
As I wrote to you privately, what you are trying to do is akin to ...
8 years, 8 months ago (2012-04-16 16:25:37 UTC) #16
mkosiba (inactive)
8 years, 8 months ago (2012-04-24 08:59:04 UTC) #17
Abandoning this approach based on conversations with Darin. Chrome on Android
will be using a ResourceThrottle instead of browser_handles_top_level_requests.

Powered by Google App Engine
This is Rietveld 408576698