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

Issue 12255023: [Media Galleries] Switch Mac MTP delegate to async interface. (Closed)

Created:
7 years, 10 months ago by Greg Billock
Modified:
7 years, 8 months ago
Reviewers:
Lei Zhang, kinuko, kmadhusu
CC:
chromium-reviews, tzik+watch_chromium.org, kinuko+watch, darin-cc_chromium.org, sail+watch_chromium.org, feature-media-reviews_chromium.org
Visibility:
Public.

Description

[Media Galleries] Switch Mac MTP delegate to async interface. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192631

Patch Set 1 #

Patch Set 2 : Merge to head and add test adaptation (still needs work) #

Patch Set 3 : All tests passing #

Patch Set 4 : No log lines #

Total comments: 36

Patch Set 5 : Tweaks and thread asserts #

Patch Set 6 : Reorder some functions, add some more comments #

Total comments: 6

Patch Set 7 : Rebase #

Patch Set 8 : Use Owned #

Patch Set 9 : Handle multiple async calls #

Total comments: 27

Patch Set 10 : Rebase #

Patch Set 11 : More asynciness, etc. #

Patch Set 12 : comment #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : Support overlapped dir reads #

Total comments: 8

Patch Set 16 : Repair erase #

Total comments: 2

Patch Set 17 : Iterator #

Patch Set 18 : Add test for overlapped ReadDir #

Total comments: 10

Patch Set 19 : Constants &c #

Total comments: 6

Patch Set 20 : Rebase #

Patch Set 21 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -297 lines) Patch
M chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +81 lines, -70 lines 0 comments Download
M chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6 chunks +232 lines, -145 lines 0 comments Download
M chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +220 lines, -81 lines 0 comments Download
M webkit/fileapi/media/mtp_device_file_system_config.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (0 generated)
Greg Billock
This is ready for review. All tests passing.
7 years, 10 months ago (2013-02-23 06:07:32 UTC) #1
sail
I wasn't keeping up with this code so I don't think I can provide my ...
7 years, 10 months ago (2013-02-25 17:53:20 UTC) #2
kmadhusu
https://codereview.chromium.org/12255023/diff/5002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/5002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode14 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:14: #include "base/sequenced_task_runner_helpers.h" This header file is not required. https://codereview.chromium.org/12255023/diff/5002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode15 ...
7 years, 10 months ago (2013-02-26 17:59:15 UTC) #3
Greg Billock
https://codereview.chromium.org/12255023/diff/5002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/5002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode14 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:14: #include "base/sequenced_task_runner_helpers.h" On 2013/02/26 17:59:15, kmadhusu wrote: > This ...
7 years, 10 months ago (2013-02-26 22:02:09 UTC) #4
kmadhusu
Adding thestig@ as reviewer. I am currently busy. Sorry, I don't have time to do ...
7 years, 9 months ago (2013-02-27 17:23:23 UTC) #5
Lei Zhang
https://codereview.chromium.org/12255023/diff/7004/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/7004/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm#newcode168 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm:168: content::BrowserThread::PostTaskAndReply(content::BrowserThread::UI, You can do PostTaskAndReplyWithResults, such that GetFileInfoImpl returns ...
7 years, 9 months ago (2013-03-04 22:45:01 UTC) #6
Greg Billock
Added kinuko. Can you tell me about the parallel invocation of the async methods? I've ...
7 years, 9 months ago (2013-03-06 00:28:29 UTC) #7
Lei Zhang
On 2013/03/06 00:28:29, Greg Billock wrote: > On 2013/03/04 22:45:01, Lei Zhang wrote: > > ...
7 years, 9 months ago (2013-03-06 00:41:02 UTC) #8
kinuko
On 2013/03/06 00:28:29, Greg Billock wrote: > Added kinuko. Can you tell me about the ...
7 years, 9 months ago (2013-03-06 04:12:56 UTC) #9
Greg Billock
Thanks, Kinuko. My mental image (calls within a sequenced task runner) was wrong, or perhaps ...
7 years, 9 months ago (2013-03-06 17:49:32 UTC) #10
kinuko
On Thu, Mar 7, 2013 at 2:49 AM, Greg Billock <gbillock@chromium.org> wrote: > Thanks, Kinuko. ...
7 years, 9 months ago (2013-03-07 06:07:56 UTC) #11
Greg Billock
On Wed, Mar 6, 2013 at 10:07 PM, Kinuko Yasuda <kinuko@chromium.org> wrote: > On Thu, ...
7 years, 9 months ago (2013-03-07 18:41:25 UTC) #12
Greg Billock
OK. Updated to handle multiple simultaneous async calls.
7 years, 9 months ago (2013-03-07 23:53:57 UTC) #13
Greg Billock
On 2013/03/07 23:53:57, Greg Billock wrote: > OK. Updated to handle multiple simultaneous async calls. ...
7 years, 9 months ago (2013-03-11 15:52:21 UTC) #14
kinuko
On 2013/03/11 15:52:21, Greg Billock wrote: > On 2013/03/07 23:53:57, Greg Billock wrote: > > ...
7 years, 9 months ago (2013-03-18 03:40:37 UTC) #15
Lei Zhang
https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode61 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h:61: void CancelAndDelete(); I think this can be private? https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode109 ...
7 years, 9 months ago (2013-03-18 09:25:55 UTC) #16
Greg Billock
https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode61 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h:61: void CancelAndDelete(); On 2013/03/18 09:25:55, Lei Zhang wrote: > ...
7 years, 9 months ago (2013-03-20 23:43:55 UTC) #17
Lei Zhang
https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode109 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h:109: std::vector<base::FilePath> file_paths_; On 2013/03/20 23:43:55, Greg Billock wrote: > ...
7 years, 9 months ago (2013-03-21 22:34:57 UTC) #18
Greg Billock
https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode228 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm:228: read_dir_transactions_[root.value()] = On 2013/03/21 22:34:58, Lei Zhang wrote: > ...
7 years, 9 months ago (2013-03-25 16:33:25 UTC) #19
Lei Zhang
On 2013/03/25 16:33:25, Greg Billock wrote: > https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm > File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): > > https://codereview.chromium.org/12255023/diff/32001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode228 ...
7 years, 9 months ago (2013-03-26 01:55:01 UTC) #20
Greg Billock
On 2013/03/26 01:55:01, Lei Zhang wrote: > On 2013/03/25 16:33:25, Greg Billock wrote: > > ...
7 years, 8 months ago (2013-04-01 19:25:42 UTC) #21
Lei Zhang
lgtm if you fix the std::list::erase() issue. https://codereview.chromium.org/12255023/diff/63001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/63001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode130 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h:130: typedef std::list<ReadDirectoryRequest> ...
7 years, 8 months ago (2013-04-02 01:28:17 UTC) #22
Greg Billock
https://codereview.chromium.org/12255023/diff/63001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/12255023/diff/63001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h#newcode130 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h:130: typedef std::list<ReadDirectoryRequest> ReadDirTransactionList; On 2013/04/02 01:28:18, Lei Zhang wrote: ...
7 years, 8 months ago (2013-04-02 23:57:50 UTC) #23
Lei Zhang
https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode250 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm:250: iter != read_dir_transactions_.end(); ++iter) { You still have the ...
7 years, 8 months ago (2013-04-03 00:05:02 UTC) #24
Greg Billock
https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode250 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm:250: iter != read_dir_transactions_.end(); ++iter) { On 2013/04/03 00:05:02, Lei ...
7 years, 8 months ago (2013-04-03 00:19:27 UTC) #25
Greg Billock
On 2013/04/03 00:19:27, Greg Billock wrote: > https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm > File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): > > https://codereview.chromium.org/12255023/diff/71001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode250 ...
7 years, 8 months ago (2013-04-04 01:48:30 UTC) #26
Lei Zhang
lgtm https://codereview.chromium.org/12255023/diff/83001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm (right): https://codereview.chromium.org/12255023/diff/83001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm#newcode185 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm:185: // Need a waitable event on io thread ...
7 years, 8 months ago (2013-04-04 03:46:21 UTC) #27
Greg Billock
https://codereview.chromium.org/12255023/diff/83001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm (right): https://codereview.chromium.org/12255023/diff/83001/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm#newcode185 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac_unittest.mm:185: // Need a waitable event on io thread startup? ...
7 years, 8 months ago (2013-04-04 17:00:51 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/12255023/106002
7 years, 8 months ago (2013-04-04 17:01:12 UTC) #29
commit-bot: I haz the power
Presubmit check for 12255023-106002 failed and returned exit status 1. INFO:root:Found 4 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-04 17:01:16 UTC) #30
Greg Billock
On 2013/04/04 17:01:16, I haz the power (commit-bot) wrote: > Presubmit check for 12255023-106002 failed ...
7 years, 8 months ago (2013-04-04 17:04:30 UTC) #31
kinuko
lgtm https://codereview.chromium.org/12255023/diff/106002/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/106002/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode157 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm:157: } nit: no need of { } for ...
7 years, 8 months ago (2013-04-05 07:51:20 UTC) #32
Greg Billock
https://codereview.chromium.org/12255023/diff/106002/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm File chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/12255023/diff/106002/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm#newcode157 chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm:157: } On 2013/04/05 07:51:21, kinuko wrote: > nit: no ...
7 years, 8 months ago (2013-04-05 16:23:13 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/12255023/118001
7 years, 8 months ago (2013-04-05 16:23:34 UTC) #34
commit-bot: I haz the power
7 years, 8 months ago (2013-04-05 21:03:13 UTC) #35
Message was sent while issue was closed.
Change committed as 192631

Powered by Google App Engine
This is Rietveld 408576698