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

Issue 1622743005: Introduce background Download process to android (Closed)

Created:
4 years, 11 months ago by qinmin
Modified:
4 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce background Download process to android This change adds a new download process to android. This process will handle download in the background and may outlive chrome Unlike other ChildProcessService, DownloadProcessService is a started service as it manage its own lifecycle: When a download started, the download service will start running When all download finishes, the Download service will be stopped BUG=545640 Committed: https://crrev.com/ee805c1eeab8ed56cdac0020ba41948279bdbd05 Cr-Commit-Position: refs/heads/master@{#373608}

Patch Set 1 #

Total comments: 28

Patch Set 2 : addressing comments #

Total comments: 8

Patch Set 3 : Moving away from ChildProcessLauncher #

Total comments: 8

Patch Set 4 : addressing siever's comments #

Total comments: 16

Patch Set 5 : nits #

Patch Set 6 : fix gn build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -44 lines) Patch
M chrome/android/java/AndroidManifest.xml View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M content/app/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A content/app/android/download_main.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/android/child_process_launcher_android.cc View 1 2 3 4 3 chunks +45 lines, -0 lines 0 comments Download
M content/content_app.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + content/public/android/java/res/values/ids.xml View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/app/DownloadProcessService.java View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java View 1 2 2 chunks +3 lines, -12 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessConstants.java View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 3 4 10 chunks +73 lines, -24 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/ContentSwitches.java View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/common/IChildProcessCallback.aidl View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
qinmin
PTAL: sievers@ for review and OWNER
4 years, 11 months ago (2016-01-23 00:47:47 UTC) #2
svaldez
Initial pass. https://codereview.chromium.org/1622743005/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1622743005/diff/1/chrome/android/java/AndroidManifest.xml#newcode650 chrome/android/java/AndroidManifest.xml:650: android:process=":download"/> nit: Reorder to match ordering of ...
4 years, 11 months ago (2016-01-25 15:33:44 UTC) #3
asanka
Started looking at this, but I think we should hash out the role of the ...
4 years, 11 months ago (2016-01-25 16:44:50 UTC) #4
qinmin
https://codereview.chromium.org/1622743005/diff/1/chrome/android/java/AndroidManifest.xml File chrome/android/java/AndroidManifest.xml (right): https://codereview.chromium.org/1622743005/diff/1/chrome/android/java/AndroidManifest.xml#newcode646 chrome/android/java/AndroidManifest.xml:646: when user kills chrome --> On 2016/01/25 16:44:50, asanka ...
4 years, 11 months ago (2016-01-25 22:48:23 UTC) #5
qinmin
ping, sievers@, would you please take a look? thanks
4 years, 11 months ago (2016-01-26 18:22:00 UTC) #6
no sievers
https://codereview.chromium.org/1622743005/diff/20001/content/browser/android/download_process_host.h File content/browser/android/download_process_host.h (right): https://codereview.chromium.org/1622743005/diff/20001/content/browser/android/download_process_host.h#newcode15 content/browser/android/download_process_host.h:15: public: This class is unused. https://codereview.chromium.org/1622743005/diff/20001/content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java (right): ...
4 years, 11 months ago (2016-01-27 00:33:36 UTC) #7
qinmin
sievers@, PTAL again. Chatted with sievers@, removed all dependencies on BrowserProcessHost and ChildProcessLauncher since the ...
4 years, 11 months ago (2016-01-28 00:58:31 UTC) #8
no sievers
https://codereview.chromium.org/1622743005/diff/40001/content/app/android/download_main.cc File content/app/android/download_main.cc (right): https://codereview.chromium.org/1622743005/diff/40001/content/app/android/download_main.cc#newcode13 content/app/android/download_main.cc:13: // process. Does this TODO still apply? https://codereview.chromium.org/1622743005/diff/40001/content/browser/android/child_process_launcher_android.cc File ...
4 years, 10 months ago (2016-02-02 01:37:38 UTC) #11
qinmin
PTAL again, thanks https://codereview.chromium.org/1622743005/diff/40001/content/app/android/download_main.cc File content/app/android/download_main.cc (right): https://codereview.chromium.org/1622743005/diff/40001/content/app/android/download_main.cc#newcode13 content/app/android/download_main.cc:13: // process. On 2016/02/02 01:37:38, sievers ...
4 years, 10 months ago (2016-02-02 20:51:41 UTC) #12
no sievers
ok just a few more nits https://codereview.chromium.org/1622743005/diff/60001/content/app/android/download_main.cc File content/app/android/download_main.cc (right): https://codereview.chromium.org/1622743005/diff/60001/content/app/android/download_main.cc#newcode1 content/app/android/download_main.cc:1: // Copyright 2015 ...
4 years, 10 months ago (2016-02-03 22:46:52 UTC) #13
qinmin
https://codereview.chromium.org/1622743005/diff/60001/content/app/android/download_main.cc File content/app/android/download_main.cc (right): https://codereview.chromium.org/1622743005/diff/60001/content/app/android/download_main.cc#newcode1 content/app/android/download_main.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 10 months ago (2016-02-03 23:37:37 UTC) #14
no sievers
lgtm
4 years, 10 months ago (2016-02-03 23:45:11 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622743005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622743005/80001
4 years, 10 months ago (2016-02-03 23:47:38 UTC) #17
qinmin
+tedchoc for chrome/android/ OWNER
4 years, 10 months ago (2016-02-03 23:50:11 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_rel/builds/17169)
4 years, 10 months ago (2016-02-04 00:47:20 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622743005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622743005/100001
4 years, 10 months ago (2016-02-04 06:33:13 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/175023)
4 years, 10 months ago (2016-02-04 07:35:20 UTC) #25
Ted C
On 2016/02/04 07:35:20, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 10 months ago (2016-02-04 19:27:47 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1622743005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1622743005/100001
4 years, 10 months ago (2016-02-04 19:29:45 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 10 months ago (2016-02-04 20:38:04 UTC) #31
commit-bot: I haz the power
4 years, 10 months ago (2016-02-04 20:38:56 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ee805c1eeab8ed56cdac0020ba41948279bdbd05
Cr-Commit-Position: refs/heads/master@{#373608}

Powered by Google App Engine
This is Rietveld 408576698