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

Issue 11416089: [Media Galleries] Filesystem interface for Mac PTP/MTP devices using ImageCaptureCore (part 3) (Closed)

Created:
8 years, 1 month ago by Greg Billock
Modified:
7 years, 10 months ago
CC:
chromium-reviews, sail+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Filesystem interface for Mac PTP/MTP devices using ImageCaptureCore BUG=151681 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181532

Patch Set 1 #

Patch Set 2 : Registration working for image capture devices #

Patch Set 3 : Add hooks for FS delegate #

Patch Set 4 : Stab at getting the delegate hooked up with the IC lib #

Patch Set 5 : Interface class #

Patch Set 6 : Working file metadata. Hooking up iterator. #

Patch Set 7 : Giving files to enumerator #

Patch Set 8 : Fix up iterator #

Patch Set 9 : Merge to head #

Patch Set 10 : Download path and lint fixes. #

Patch Set 11 : Need IO permissions on worker thread pool #

Patch Set 12 : Working on 10.8! #

Patch Set 13 : Merge to head #

Patch Set 14 : merge to head #

Patch Set 15 : Rebase to current image capture api state #

Total comments: 25

Patch Set 16 : Add basic test and fixture #

Patch Set 17 : Move files #

Total comments: 12

Patch Set 18 : Use single enumerator #

Total comments: 59

Patch Set 19 : Review fixes #

Total comments: 8

Patch Set 20 : Review fixes #

Patch Set 21 : Add a bunch more tests #

Total comments: 2

Patch Set 22 : Rebase to head #

Patch Set 23 : Merge to head #

Patch Set 24 : Add locking in delegate #

Total comments: 11

Patch Set 25 : Merge to head #

Patch Set 26 : Defensive enumerator #

Total comments: 10

Patch Set 27 : Cancel in UI thread, etc. #

Total comments: 10

Patch Set 28 : Merge to head #

Patch Set 29 : Clarify mock object ownership #

Patch Set 30 : Merge to head #

Patch Set 31 : Merge to head #

Total comments: 3

Patch Set 32 : Add cocoa protocols include for 10.6 #

Patch Set 33 : Fixup for 10.6 #

Patch Set 34 : Hold off on enabling support -- ImageCapture notifications need fixing. #

Patch Set 35 : Merge to head #

Patch Set 36 : Can't not enable due to include defines. #

Patch Set 37 : Disable a test for mac #

Patch Set 38 : Merge to head, stop using base system monitor #

Patch Set 39 : Don't use task runner for callback notifications #

Patch Set 40 : Repair merge #

Patch Set 41 : Disable GalleryNameMTP test for mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+834 lines, -6 lines) Patch
A chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 26 27 28 29 1 chunk +131 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +328 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/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 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 1 chunk +352 lines, -0 lines 0 comments Download
M chrome/browser/media_gallery/media_file_system_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/system_monitor/image_capture_device.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 1 chunk +1 line, -0 lines 0 comments Download
M webkit/fileapi/media/mtp_device_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 1 chunk +8 lines, -2 lines 0 comments Download
M webkit/fileapi/media/mtp_device_file_system_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 34 35 1 chunk +4 lines, -3 lines 0 comments Download
M webkit/storage/webkit_storage.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 47 (0 generated)
Greg Billock
ok, this is ready to start looking at. It's adapted to the finalizing state of ...
8 years ago (2012-12-21 20:11:01 UTC) #1
Lei Zhang
quick first pass. https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h#newcode31 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h:31: explicit MTPDeviceDelegateImplMac( not explicit https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File ...
8 years ago (2012-12-21 21:05:44 UTC) #2
Greg Billock
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h#newcode31 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.h:31: explicit MTPDeviceDelegateImplMac( On 2012/12/21 21:05:44, Lei Zhang wrote: > ...
8 years ago (2012-12-22 00:10:27 UTC) #3
Lei Zhang
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode110 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:110: DCHECK(MediaStorageUtil::CrackDeviceId(device_id, &type, &device_id_)); On 2012/12/22 00:10:28, Greg Billock wrote: ...
8 years ago (2012-12-22 00:18:30 UTC) #4
Lei Zhang
https://chromiumcodereview.appspot.com/11416089/diff/36001/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://chromiumcodereview.appspot.com/11416089/diff/36001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode56 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:56: // before CancelPendingTeasksAndDeleteDelegate is called. typo https://chromiumcodereview.appspot.com/11416089/diff/36001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode108 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:108: std::vector<Enumerator*> ...
8 years ago (2012-12-22 02:44:35 UTC) #5
Greg Billock
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode110 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:110: DCHECK(MediaStorageUtil::CrackDeviceId(device_id, &type, &device_id_)); Oh, duh. Of course. Fixing. On ...
8 years ago (2012-12-22 03:11:41 UTC) #6
sail
Couple of high level comments: - the CL description talks about PTP but the code ...
7 years, 12 months ago (2012-12-26 21:30:43 UTC) #7
Lei Zhang
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode152 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:152: bool recursive) { If we can have a directory ...
7 years, 11 months ago (2013-01-02 23:46:54 UTC) #8
Greg Billock
On 2012/12/26 21:30:43, sail wrote: > Couple of high level comments: > - the CL ...
7 years, 11 months ago (2013-01-03 22:00:54 UTC) #9
Greg Billock
https://codereview.chromium.org/11416089/diff/36001/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/11416089/diff/36001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm#newcode32 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.mm:32: virtual ~CameraDeviceInterface() {} On 2013/01/02 23:46:54, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-03 22:41:32 UTC) #10
sail
https://codereview.chromium.org/11416089/diff/35010/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/11416089/diff/35010/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode23 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:23: class CameraDeviceInterface; On 2013/01/03 22:41:32, Greg Billock wrote: > ...
7 years, 11 months ago (2013-01-03 23:10:43 UTC) #11
Greg Billock
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode152 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:152: bool recursive) { On 2013/01/02 23:46:54, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-04 18:05:05 UTC) #12
Lei Zhang
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode152 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:152: bool recursive) { On 2013/01/04 18:05:05, Greg Billock wrote: ...
7 years, 11 months ago (2013-01-04 20:28:19 UTC) #13
Greg Billock
https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm File chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm (right): https://codereview.chromium.org/11416089/diff/28001/chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm#newcode152 chrome/browser/media_gallery/mtp_device_delegate_impl_mac.mm:152: bool recursive) { On 2013/01/04 20:28:19, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-08 16:59:36 UTC) #14
sail
Didn't finish reviewing the code. I'll wait till the threading issues are resolved before doing ...
7 years, 11 months ago (2013-01-08 20:16:41 UTC) #15
Greg Billock
Added pretty aggressive locking. I think it may be possible to scope it in a ...
7 years, 11 months ago (2013-01-16 01:15:29 UTC) #16
Lei Zhang
https://codereview.chromium.org/11416089/diff/62001/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/11416089/diff/62001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode57 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:57: // before CancelPendingTasksAndDeleteDelegate is called. What you really want ...
7 years, 11 months ago (2013-01-17 07:56:22 UTC) #17
Greg Billock
https://codereview.chromium.org/11416089/diff/62001/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/11416089/diff/62001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode57 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:57: // before CancelPendingTasksAndDeleteDelegate is called. On 2013/01/17 07:56:23, Lei ...
7 years, 11 months ago (2013-01-25 18:41:39 UTC) #18
Lei Zhang
lgtm, and hopefully we can remove a lot of the complexity once the fileapi becomes ...
7 years, 11 months ago (2013-01-25 23:51:20 UTC) #19
Greg Billock
sail, want to take a look for ObjC? I think this one is less headache-inducing ...
7 years, 11 months ago (2013-01-26 01:29:44 UTC) #20
sail
https://codereview.chromium.org/11416089/diff/81002/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/11416089/diff/81002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode1 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 11 months ago (2013-01-26 02:11:38 UTC) #21
Greg Billock
https://codereview.chromium.org/11416089/diff/81002/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/11416089/diff/81002/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode1 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-01-28 18:57:07 UTC) #22
sail
Objective-C code LGTM!
7 years, 10 months ago (2013-01-29 19:05:40 UTC) #23
Greg Billock
On 2013/01/29 19:05:40, sail wrote: > Objective-C code LGTM! Thanks! Adding kinuko and darin for ...
7 years, 10 months ago (2013-01-29 23:00:10 UTC) #24
kinuko
webkit/fileapi lgtm On 2013/01/25 23:51:20, Lei Zhang wrote: > lgtm, and hopefully we can remove ...
7 years, 10 months ago (2013-01-30 03:25:35 UTC) #25
darin (slow to review)
https://codereview.chromium.org/11416089/diff/91001/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/11416089/diff/91001/chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h#newcode1 chrome/browser/media_gallery/mac/mtp_device_delegate_impl_mac.h:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 10 months ago (2013-01-30 05:51:03 UTC) #26
kinuko
https://codereview.chromium.org/11416089/diff/91001/webkit/fileapi/media/mtp_device_delegate.h File webkit/fileapi/media/mtp_device_delegate.h (right): https://codereview.chromium.org/11416089/diff/91001/webkit/fileapi/media/mtp_device_delegate.h#newcode5 webkit/fileapi/media/mtp_device_delegate.h:5: #ifndef WEBKIT_FILEAPI_MEDIA_MTP_DEVICE_DELEGATE_H_ On 2013/01/30 05:51:03, darin wrote: > I'm ...
7 years, 10 months ago (2013-01-30 07:12:55 UTC) #27
darin (slow to review)
On Tue, Jan 29, 2013 at 11:12 PM, <kinuko@chromium.org> wrote: > > https://codereview.chromium.**org/11416089/diff/91001/** > webkit/fileapi/media/mtp_**device_delegate.h<https://codereview.chromium.org/11416089/diff/91001/webkit/fileapi/media/mtp_device_delegate.h> ...
7 years, 10 months ago (2013-01-30 08:03:35 UTC) #28
kinuko
On 2013/01/30 08:03:35, darin wrote: > On Tue, Jan 29, 2013 at 11:12 PM, <mailto:kinuko@chromium.org> ...
7 years, 10 months ago (2013-01-30 08:41:16 UTC) #29
Greg Billock
On 2013/01/30 08:41:16, kinuko wrote: > On 2013/01/30 08:03:35, darin wrote: > > On Tue, ...
7 years, 10 months ago (2013-01-30 17:03:34 UTC) #30
darin (slow to review)
LGTM Definitely OK to consider refactorings in a separate CL. -Darin On Wed, Jan 30, ...
7 years, 10 months ago (2013-01-30 22:18:16 UTC) #31
kinuko
On 2013/01/30 17:03:34, Greg Billock wrote: > On 2013/01/30 08:41:16, kinuko wrote: > > On ...
7 years, 10 months ago (2013-01-31 01:44:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/91001
7 years, 10 months ago (2013-01-31 18:18:18 UTC) #33
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-31 19:05:01 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/84015
7 years, 10 months ago (2013-01-31 23:37:24 UTC) #35
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-01 03:01:56 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/81008
7 years, 10 months ago (2013-02-01 16:23:07 UTC) #37
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 10 months ago (2013-02-01 17:47:15 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/83031
7 years, 10 months ago (2013-02-01 18:29:11 UTC) #39
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-01 19:32:38 UTC) #40
Greg Billock
I've disabled a Mac registry test. It basically ends up wanting to create the MTP ...
7 years, 10 months ago (2013-02-02 06:04:41 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/124004
7 years, 10 months ago (2013-02-07 21:21:49 UTC) #42
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-07 22:08:02 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/124008
7 years, 10 months ago (2013-02-07 23:19:45 UTC) #44
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=97515
7 years, 10 months ago (2013-02-08 00:25:19 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/11416089/130005
7 years, 10 months ago (2013-02-08 16:21:05 UTC) #46
commit-bot: I haz the power
7 years, 10 months ago (2013-02-08 19:10:57 UTC) #47
Message was sent while issue was closed.
Change committed as 181532

Powered by Google App Engine
This is Rietveld 408576698