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

Issue 10449017: Add android download controller. (Closed)

Created:
8 years, 7 months ago by nilesh
Modified:
8 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Add android download controller. The android download controller is responsible for sending GET downloads to the JAVA side (to be handled by Android DownloadManager). - It also prepares all the info needed for the download (cookies etc) - POST downloads are handled natively, the download controller can be used to pass start/completed notifications to the JAVA side. BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139600

Patch Set 1 #

Patch Set 2 : render_view_host_delegate.h moved #

Patch Set 3 : Few comments added. #

Total comments: 34

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Calling CanGetCookies on the network delegate. #

Total comments: 12

Patch Set 6 : John's comments #

Total comments: 2

Patch Set 7 : Fixed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+530 lines, -0 lines) Patch
M content/browser/android/content_jni_registrar.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A content/browser/android/download_controller.h View 1 2 3 4 5 1 chunk +126 lines, -0 lines 0 comments Download
A content/browser/android/download_controller.cc View 1 2 3 4 5 6 1 chunk +318 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
A content/public/android/java/org/chromium/content/browser/DownloadController.java View 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
nilesh
Hi John, Please take a look. DownloadController::NewGetDownload will be called by the android implementation of ...
8 years, 7 months ago (2012-05-25 17:14:47 UTC) #1
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10449017/diff/10001/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/10001/content/browser/android/download_controller.cc#newcode1 content/browser/android/download_controller.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
8 years, 7 months ago (2012-05-25 21:29:36 UTC) #2
nilesh
@jochen: Thanks for the comments. PTAL. http://codereview.chromium.org/10449017/diff/10001/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/10001/content/browser/android/download_controller.cc#newcode1 content/browser/android/download_controller.cc:1: // Copyright (c) ...
8 years, 7 months ago (2012-05-25 23:10:22 UTC) #3
jochen (gone - plz use gerrit)
http://codereview.chromium.org/10449017/diff/12002/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/12002/content/browser/android/download_controller.cc#newcode38 content/browser/android/download_controller.cc:38: static void Init(JNIEnv* env, jobject obj) { if it's ...
8 years, 7 months ago (2012-05-26 10:12:44 UTC) #4
nilesh
PTAL. http://codereview.chromium.org/10449017/diff/12002/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/12002/content/browser/android/download_controller.cc#newcode38 content/browser/android/download_controller.cc:38: static void Init(JNIEnv* env, jobject obj) { On ...
8 years, 6 months ago (2012-05-29 18:21:22 UTC) #5
jam
http://codereview.chromium.org/10449017/diff/12004/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/12004/content/browser/android/download_controller.cc#newcode19 content/browser/android/download_controller.cc:19: #include "content/public/browser/web_contents.h" nit: for all these includes, our convention ...
8 years, 6 months ago (2012-05-29 21:48:05 UTC) #6
nilesh
Addressed comments. PTAL. http://codereview.chromium.org/10449017/diff/12004/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/12004/content/browser/android/download_controller.cc#newcode19 content/browser/android/download_controller.cc:19: #include "content/public/browser/web_contents.h" On 2012/05/29 21:48:05, John ...
8 years, 6 months ago (2012-05-30 00:29:57 UTC) #7
jam
lgtm http://codereview.chromium.org/10449017/diff/2006/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/2006/content/browser/android/download_controller.cc#newcode176 content/browser/android/download_controller.cc:176: BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, nit: to follow the style guide, ...
8 years, 6 months ago (2012-05-30 14:59:49 UTC) #8
nilesh
Thanks for the review. http://codereview.chromium.org/10449017/diff/2006/content/browser/android/download_controller.cc File content/browser/android/download_controller.cc (right): http://codereview.chromium.org/10449017/diff/2006/content/browser/android/download_controller.cc#newcode176 content/browser/android/download_controller.cc:176: BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, On 2012/05/30 14:59:49, ...
8 years, 6 months ago (2012-05-30 17:04:09 UTC) #9
nilesh
On 2012/05/30 17:04:09, nileshagrawal1 wrote: > Thanks for the review. > > http://codereview.chromium.org/10449017/diff/2006/content/browser/android/download_controller.cc > File ...
8 years, 6 months ago (2012-05-30 17:06:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/10449017/17002
8 years, 6 months ago (2012-05-30 17:38:12 UTC) #11
jochen (gone - plz use gerrit)
I'm fine, thank you! On Wed, May 30, 2012 at 7:38 PM, <commit-bot@chromium.org> wrote: > ...
8 years, 6 months ago (2012-05-30 17:56:53 UTC) #12
commit-bot: I haz the power
8 years, 6 months ago (2012-05-30 19:21:11 UTC) #13
Change committed as 139600

Powered by Google App Engine
This is Rietveld 408576698