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

Issue 13037003: permissionrequest API for guest Download. (Closed)

Created:
7 years, 9 months ago by lazyboy
Modified:
7 years, 8 months ago
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, chromium-apps-reviews_chromium.org, asanka
Visibility:
Public.

Description

permissionrequest API for guest Download. Exposed event: event.type = 'download' event.requestMethod = 'GET'/'POST'... event.url = url BUG=141204 TEST=Pending: osx + win (b/c there is a *ViewGuest change). Added browser_tests:WebViewTest.Download, ran unit_tests:DownloadRequestLimiterTest* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192029

Patch Set 1 #

Patch Set 2 : Sync. #

Total comments: 4

Patch Set 3 : Merge two CanDownload* functions. #

Total comments: 2

Patch Set 4 : Add url string to send with event info + add browser_tests. #

Patch Set 5 : Fix PostTask and tests. #

Total comments: 6

Patch Set 6 : Addressed comments from asanka@ #

Patch Set 7 : Fix android build. #

Patch Set 8 : Fix chrome_web_contents_delegate_android.{cc,h} #

Patch Set 9 : Fix win compile. #

Patch Set 10 : Sync + fix one comment in download_request_limiter, add a comment in bpguest #

Patch Set 11 : Sync @tott #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -70 lines) Patch
M android_webview/native/aw_web_contents_delegate.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M android_webview/native/aw_web_contents_delegate.cc View 1 2 3 4 5 6 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/download/download_request_limiter.h View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/download/download_request_limiter.cc View 1 2 3 4 5 6 7 8 9 4 chunks +42 lines, -15 lines 0 comments Download
M chrome/browser/extensions/web_view_browsertest.cc View 1 2 3 4 2 chunks +113 lines, -0 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/instant_loader.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/instant_loader.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/external_tab_container_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view_experimental.js View 2 chunks +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/download/embedder.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/download/embedder.js View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/download/guest.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/download/manifest.json View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/download/test.js View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +82 lines, -8 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_message_filter.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_message_enums.h View 1 chunk +12 lines, -8 lines 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
lazyboy
Fady, can you take a quick initial look? I still have to write browser_test and ...
7 years, 9 months ago (2013-03-25 16:31:51 UTC) #1
asanka
Drive by. https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h#newcode226 content/public/browser/web_contents_delegate.h:226: virtual void CanDownloadAsync(RenderViewHost* render_view_host, Why are you ...
7 years, 9 months ago (2013-03-25 18:15:11 UTC) #2
lazyboy
https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h#newcode226 content/public/browser/web_contents_delegate.h:226: virtual void CanDownloadAsync(RenderViewHost* render_view_host, On 2013/03/25 18:15:11, asanka wrote: ...
7 years, 9 months ago (2013-03-25 18:36:40 UTC) #3
asanka
https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h#newcode226 content/public/browser/web_contents_delegate.h:226: virtual void CanDownloadAsync(RenderViewHost* render_view_host, On 2013/03/25 18:36:40, lazyboy wrote: ...
7 years, 9 months ago (2013-03-25 18:58:11 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://chromiumcodereview.appspot.com/13037003/diff/2001/content/public/browser/web_contents_delegate.h#newcode226 content/public/browser/web_contents_delegate.h:226: virtual void CanDownloadAsync(RenderViewHost* render_view_host, On 2013/03/25 18:58:11, asanka wrote: ...
7 years, 9 months ago (2013-03-25 20:13:05 UTC) #5
Fady Samuel
This looks fine to me from a browser_plugin perspective. A test would be nice. content/public ...
7 years, 8 months ago (2013-03-26 15:34:34 UTC) #6
lazyboy
I'll go ahead and add tests for this CL then, assuming there's no red flag ...
7 years, 8 months ago (2013-03-26 16:04:36 UTC) #7
lazyboy
I've added tests, Fady can you take another look? @asanka, Can you review the downloads ...
7 years, 8 months ago (2013-03-27 00:59:27 UTC) #8
asanka
https://chromiumcodereview.appspot.com/13037003/diff/20001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://chromiumcodereview.appspot.com/13037003/diff/20001/chrome/browser/download/download_request_limiter.cc#newcode286 chrome/browser/download/download_request_limiter.cc:286: originating_contents, request_id, request_method, callback); |originating_contents| might go away before ...
7 years, 8 months ago (2013-03-27 15:34:53 UTC) #9
lazyboy
https://chromiumcodereview.appspot.com/13037003/diff/20001/chrome/browser/download/download_request_limiter.cc File chrome/browser/download/download_request_limiter.cc (right): https://chromiumcodereview.appspot.com/13037003/diff/20001/chrome/browser/download/download_request_limiter.cc#newcode286 chrome/browser/download/download_request_limiter.cc:286: originating_contents, request_id, request_method, callback); On 2013/03/27 15:34:53, asanka wrote: ...
7 years, 8 months ago (2013-03-27 17:09:22 UTC) #10
asanka
chrome/browser/download LGTM
7 years, 8 months ago (2013-03-28 21:30:04 UTC) #11
lazyboy
John, can you review content/public/* changes? I'll add other OWNERS as reviewers afterwards. Ty.
7 years, 8 months ago (2013-03-28 21:39:27 UTC) #12
jam
lgtm
7 years, 8 months ago (2013-03-29 00:32:50 UTC) #13
lazyboy
+torne@ for android_webview/ +gavinp@ for chrome/browser/prerender +sky@ for chrome/browser/{ui,views}
7 years, 8 months ago (2013-03-29 01:01:13 UTC) #14
lazyboy
Actually adding torne@ this time.
7 years, 8 months ago (2013-03-29 01:02:27 UTC) #15
gavinp
lgtm
7 years, 8 months ago (2013-03-29 01:19:13 UTC) #16
sky
LGTM
7 years, 8 months ago (2013-03-29 14:57:22 UTC) #17
Torne
android_webview/ LGTM
7 years, 8 months ago (2013-04-02 14:45:49 UTC) #18
Fady Samuel
Exciting stuff. browser_plugin LGTM. Looks like this might land first before Michael's permission refactor. I'll ...
7 years, 8 months ago (2013-04-02 14:47:55 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lazyboy@chromium.org/13037003/45001
7 years, 8 months ago (2013-04-03 04:59:18 UTC) #20
commit-bot: I haz the power
7 years, 8 months ago (2013-04-03 09:01:56 UTC) #21
Message was sent while issue was closed.
Change committed as 192029

Powered by Google App Engine
This is Rietveld 408576698