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

Issue 9567035: Added MediaGalleryDatabase (Closed)

Created:
8 years, 9 months ago by tpayne
Modified:
8 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

The new media gallery API needs to cache metadata about media files. Adds the first part of database support for this. BUG=110823 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128219

Patch Set 1 #

Patch Set 2 : Minor cleanups #

Total comments: 41

Patch Set 3 : Addressed Comments #

Patch Set 4 : Addressed comment #

Patch Set 5 : Added missing files #

Patch Set 6 : Fix compile error #

Patch Set 7 : Fixing FilePath instances for Windows #

Patch Set 8 : Fix windows filepaths #

Patch Set 9 : Standardize on UTF8 for path storage #

Total comments: 2

Patch Set 10 : Add missing include for OS_WIN #

Patch Set 11 : Fix windows compile #

Total comments: 43

Patch Set 12 : Address comments #

Total comments: 8

Patch Set 13 : Address comments #

Patch Set 14 : Merge #

Total comments: 14

Patch Set 15 : Addressed comments #

Patch Set 16 : Renamed types file #

Patch Set 17 : Renamed types file #

Patch Set 18 : git try win_rel #

Patch Set 19 : #

Total comments: 2

Patch Set 20 : Moved to content namespace, fix some windows compile issues #

Patch Set 21 : Moved media_gallery code to chrome #

Unified diffs Side-by-side diffs Delta from patch set Stats (+421 lines, -0 lines) Patch
A chrome/browser/media_gallery/media_gallery_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/media_gallery_database.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +203 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/media_gallery_database_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/media_gallery_database_types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/media_gallery/media_gallery_database_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +78 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 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
tpayne
Media Gallery Database. First pass just enables creating the collection table, adding and retrieving a ...
8 years, 9 months ago (2012-03-02 01:05:00 UTC) #1
vandebo (ex-Chrome)
Some initial thoughts. Lei is going to pick up the first round of review from ...
8 years, 9 months ago (2012-03-05 23:16:02 UTC) #2
Lei Zhang
http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database.h File content/browser/media_gallery/media_gallery_database.h (right): http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database.h#newcode51 content/browser/media_gallery/media_gallery_database.h:51: bool operator==(const CollectionRow& row2) const { Please try to ...
8 years, 9 months ago (2012-03-05 23:38:36 UTC) #3
tpayne
http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database.cc#newcode19 content/browser/media_gallery/media_gallery_database.cc:19: #define COLLECTION_TABLE_NAME "collections" On 2012/03/05 23:16:03, vandebo wrote: > ...
8 years, 9 months ago (2012-03-06 01:52:37 UTC) #4
Lei Zhang
http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database_unittest.cc File content/browser/media_gallery/media_gallery_database_unittest.cc (right): http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database_unittest.cc#newcode47 content/browser/media_gallery/media_gallery_database_unittest.cc:47: EXPECT_TRUE(GetDB().DoesTableExist("collections")); On 2012/03/06 01:52:37, tpayne wrote: > On 2012/03/05 ...
8 years, 9 months ago (2012-03-06 01:57:46 UTC) #5
tpayne
http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database_unittest.cc File content/browser/media_gallery/media_gallery_database_unittest.cc (right): http://codereview.chromium.org/9567035/diff/1001/content/browser/media_gallery/media_gallery_database_unittest.cc#newcode47 content/browser/media_gallery/media_gallery_database_unittest.cc:47: EXPECT_TRUE(GetDB().DoesTableExist("collections")); On 2012/03/06 01:57:46, Lei Zhang wrote: > On ...
8 years, 9 months ago (2012-03-06 02:02:46 UTC) #6
tpayne
http://codereview.chromium.org/9567035/diff/13001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/13001/content/browser/media_gallery/media_gallery_database.cc#newcode122 content/browser/media_gallery/media_gallery_database.cc:122: #if defined(OS_WIN) Steve, If we want the DB to ...
8 years, 9 months ago (2012-03-06 22:55:59 UTC) #7
vandebo (ex-Chrome)
http://codereview.chromium.org/9567035/diff/13001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/13001/content/browser/media_gallery/media_gallery_database.cc#newcode122 content/browser/media_gallery/media_gallery_database.cc:122: #if defined(OS_WIN) On 2012/03/06 22:56:00, tpayne wrote: > Steve, ...
8 years, 9 months ago (2012-03-06 23:17:20 UTC) #8
Lei Zhang
http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc#newcode11 content/browser/media_gallery/media_gallery_database.cc:11: #if defined(OS_WIN) Put this below, even though the linter ...
8 years, 9 months ago (2012-03-07 01:41:42 UTC) #9
tpayne
http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc#newcode11 content/browser/media_gallery/media_gallery_database.cc:11: #if defined(OS_WIN) On 2012/03/07 01:41:42, Lei Zhang wrote: > ...
8 years, 9 months ago (2012-03-07 18:04:03 UTC) #10
Lei Zhang
You need to update a new patch set. http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database.cc#newcode28 content/browser/media_gallery/media_gallery_database.cc:28: static ...
8 years, 9 months ago (2012-03-07 20:59:08 UTC) #11
tpayne
On 2012/03/07 20:59:08, Lei Zhang wrote: > You need to update a new patch set. ...
8 years, 9 months ago (2012-03-07 21:02:25 UTC) #12
Lei Zhang
http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database_unittest.cc File content/browser/media_gallery/media_gallery_database_unittest.cc (right): http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database_unittest.cc#newcode54 content/browser/media_gallery/media_gallery_database_unittest.cc:54: EXPECT_TRUE(rowid); On 2012/03/07 18:04:03, tpayne wrote: > On 2012/03/07 ...
8 years, 9 months ago (2012-03-07 21:24:37 UTC) #13
tpayne
http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database_unittest.cc File content/browser/media_gallery/media_gallery_database_unittest.cc (right): http://codereview.chromium.org/9567035/diff/16002/content/browser/media_gallery/media_gallery_database_unittest.cc#newcode54 content/browser/media_gallery/media_gallery_database_unittest.cc:54: EXPECT_TRUE(rowid); On 2012/03/07 21:24:37, Lei Zhang wrote: > On ...
8 years, 9 months ago (2012-03-07 21:34:54 UTC) #14
Lei Zhang
lgtm http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc#newcode137 content/browser/media_gallery/media_gallery_database.cc:137: base::ReplaceChars(path, "\\", "/", &path); Should this just go ...
8 years, 9 months ago (2012-03-07 21:47:43 UTC) #15
tpayne
http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc#newcode137 content/browser/media_gallery/media_gallery_database.cc:137: base::ReplaceChars(path, "\\", "/", &path); On 2012/03/07 21:47:43, Lei Zhang ...
8 years, 9 months ago (2012-03-07 21:49:23 UTC) #16
vandebo (ex-Chrome)
http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc#newcode62 content/browser/media_gallery/media_gallery_database.cc:62: if (!db_.Open(database_dir.Append(FilePath(kMediaGalleryDatabaseName)))) Should we detect a readonly file system ...
8 years, 9 months ago (2012-03-07 23:28:31 UTC) #17
tpayne
http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc File content/browser/media_gallery/media_gallery_database.cc (right): http://codereview.chromium.org/9567035/diff/28001/content/browser/media_gallery/media_gallery_database.cc#newcode62 content/browser/media_gallery/media_gallery_database.cc:62: if (!db_.Open(database_dir.Append(FilePath(kMediaGalleryDatabaseName)))) On 2012/03/07 23:28:31, vandebo wrote: > Should ...
8 years, 9 months ago (2012-03-08 00:04:49 UTC) #18
jam
I can't tell what this class is used for since there are no comments in ...
8 years, 9 months ago (2012-03-08 16:33:22 UTC) #19
tpayne
On 2012/03/08 16:33:22, John Abd-El-Malek wrote: > I can't tell what this class is used ...
8 years, 9 months ago (2012-03-08 19:15:03 UTC) #20
jam
please add some description to the changelist so that people looking at the svn history ...
8 years, 9 months ago (2012-03-09 01:48:06 UTC) #21
tpayne
http://codereview.chromium.org/9567035/diff/34001/content/browser/media_gallery/media_gallery_database.h File content/browser/media_gallery/media_gallery_database.h (right): http://codereview.chromium.org/9567035/diff/34001/content/browser/media_gallery/media_gallery_database.h#newcode17 content/browser/media_gallery/media_gallery_database.h:17: namespace media_gallery { On 2012/03/09 01:48:06, John Abd-El-Malek wrote: ...
8 years, 9 months ago (2012-03-09 22:34:00 UTC) #22
tpayne
On 2012/03/09 01:48:06, John Abd-El-Malek wrote: > please add some description to the changelist so ...
8 years, 9 months ago (2012-03-13 17:16:28 UTC) #23
tpayne
Ping
8 years, 9 months ago (2012-03-14 18:11:58 UTC) #24
tpayne
On 2012/03/14 18:11:58, tpayne wrote: > Ping Steve or Lei, can you recommend another reviewer?
8 years, 9 months ago (2012-03-14 21:27:56 UTC) #25
jam
lgtm, sorry I just saw this. in the future feel free to IM me if ...
8 years, 9 months ago (2012-03-15 01:41:46 UTC) #26
jam
actually, hold on. i just saw the referenced bug. that says this is for extensions. ...
8 years, 9 months ago (2012-03-15 01:43:41 UTC) #27
jam
also, if this is why content/browser/system_message_window_win* and content/browser/media_device_notifications_linux* got added, these need to be moved ...
8 years, 9 months ago (2012-03-15 04:29:34 UTC) #28
vandebo (ex-Chrome)
So... the media device notification interface is in base, so the implementation should be in ...
8 years, 9 months ago (2012-03-15 21:00:13 UTC) #29
tpayne
On 2012/03/15 01:43:41, John Abd-El-Malek wrote: > actually, hold on. i just saw the referenced ...
8 years, 9 months ago (2012-03-15 22:33:03 UTC) #30
jam
On Thu, Mar 15, 2012 at 1:59 PM, Steve VanDeBogart <vandebo@chromium.org>wrote: > So... the media ...
8 years, 9 months ago (2012-03-16 07:43:02 UTC) #31
vandebo (ex-Chrome)
bcc: chromium-reviews@chromium.org, joi+watch-content@chromium.org, darin-cc@chromium.org On Fri, Mar 16, 2012 at 12:42 AM, John Abd-El-Malek <jam@chromium.org>wrote: ...
8 years, 9 months ago (2012-03-16 16:21:02 UTC) #32
Lei Zhang
LGTM for the latest patchset with the move to chrome/
8 years, 9 months ago (2012-03-22 00:30:56 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tpayne@chromium.org/9567035/55001
8 years, 9 months ago (2012-03-22 14:05:27 UTC) #34
commit-bot: I haz the power
8 years, 9 months ago (2012-03-22 16:02:29 UTC) #35
Change committed as 128219

Powered by Google App Engine
This is Rietveld 408576698