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

Issue 7192016: chrome.experimental.downloads (Closed)

Created:
9 years, 6 months ago by bSh
Modified:
7 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, Aaron Boodman, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

This CL will not be submitted. This CL is for high-level implementation direction feedback only. Nits will be ignored. This code will definitely change before I submit it, if only to improve safety and testability and implement tests and handle edge cases and fix lint and split it up into smaller CLs for easier digestion. Please direct comments on the API to the draft at http://goo.gl/6hO1n TODO: implement the other functions and events edge cases find race conditions tests chunk CLs experiment with html5 dnd and batch creations/erases

Patch Set 1 : Bearings Before Woods #

Total comments: 6

Patch Set 2 : search() mostly works #

Patch Set 3 : download.next_id browser pref #

Patch Set 4 : DownloadQuery, single DownloadMap #

Patch Set 5 : merged db_handle, id; onCreated, onErased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8370 lines, -659 lines) Patch
M chrome/browser/download/download_file_manager.cc View 1 2 3 4 4 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/download/download_history.h View 1 2 3 4 3 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/download/download_history.cc View 1 2 3 4 4 chunks +40 lines, -47 lines 0 comments Download
M chrome/browser/download/download_item.h View 1 2 3 4 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/download/download_item.cc View 1 2 3 4 15 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/download/download_manager.h View 1 2 3 4 8 chunks +31 lines, -52 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 28 chunks +205 lines, -407 lines 0 comments Download
M chrome/browser/download/download_prefs.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/download/download_prefs.cc View 1 2 4 3 chunks +10 lines, -0 lines 0 comments Download
A chrome/browser/download/download_query.h View 1 2 3 4 1 chunk +116 lines, -0 lines 0 comments Download
A chrome/browser/download/download_query.cc View 1 2 3 4 1 chunk +366 lines, -0 lines 0 comments Download
A chrome/browser/download/download_query_fields.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/download/download_status_updater_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/download/simple_download_item_fields.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browser_event_router.cc View 1 2 3 4 3 chunks +77 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_downloads.h View 1 2 3 4 1 chunk +232 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_downloads.cc View 1 2 3 4 1 chunk +415 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_names.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 2 3 4 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/history/download_database.h View 1 2 3 4 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/history/download_database.cc View 1 2 3 4 3 chunks +105 lines, -47 lines 0 comments Download
M chrome/browser/history/download_history_info.h View 1 2 3 4 4 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/history/download_history_info.cc View 1 2 3 4 3 chunks +2 lines, -14 lines 0 comments Download
M chrome/browser/history/history.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/history/history_marshaling.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.h View 1 2 4 5 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/download_resource_handler.cc View 1 2 3 4 8 chunks +28 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/download_throttling_resource_handler.cc View 1 4 1 chunk +11 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 6 chunks +5 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 1 chunk +261 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/experimental.downloads.html View 1 2 3 4 1 chunk +6216 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 3 4 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.h View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 2 3 4 5 chunks +36 lines, -13 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Sam Kerner (Chrome)
Ben, You are on the right track. You have the interface from javascript to C++ ...
9 years, 6 months ago (2011-06-21 03:37:40 UTC) #1
Paweł Hajdan Jr.
Thank you for working on this. However, the download code is still very unstable and ...
9 years, 6 months ago (2011-06-21 08:21:56 UTC) #2
rdsmith_google.com
Pawel: I disagree with you here. I believe the Downloads code is at the stage ...
9 years, 6 months ago (2011-06-21 13:21:54 UTC) #3
bSh
On 2011/06/21 08:21:56, Paweł Hajdan Jr. wrote: > Thank you for working on this. However, ...
9 years, 6 months ago (2011-06-21 14:44:17 UTC) #4
bSh
http://codereview.chromium.org/7192016/diff/4001/chrome/browser/extensions/extension_downloads.cc File chrome/browser/extensions/extension_downloads.cc (right): http://codereview.chromium.org/7192016/diff/4001/chrome/browser/extensions/extension_downloads.cc#newcode99 chrome/browser/extensions/extension_downloads.cc:99: // I wonder what thread this method is called ...
9 years, 6 months ago (2011-06-24 19:46:25 UTC) #5
bSh
9 years, 5 months ago (2011-06-28 21:00:18 UTC) #6
Still very much experimental and lots to do.

The kernel of this patch set is DownloadQuery:
http://codereview.chromium.org/7192016/diff/17001/chrome/browser/download/dow...
I'm planning on rewriting the existing four different
DownloadManager::GetDownloads() methods in terms of DownloadQuery. This should
fix some problems that I caused when I merged the four different maps/sets into
one DownloadMap.

Powered by Google App Engine
This is Rietveld 408576698