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

Unified Diff: content/browser/media_gallery/media_gallery_types.cc

Issue 9567035: Added MediaGalleryDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address comments Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/media_gallery/media_gallery_types.cc
diff --git a/content/browser/media_gallery/media_gallery_types.cc b/content/browser/media_gallery/media_gallery_types.cc
new file mode 100644
index 0000000000000000000000000000000000000000..93d5d05b3451150eb1fb0f93fd410d6dc5e5905d
--- /dev/null
+++ b/content/browser/media_gallery/media_gallery_types.cc
@@ -0,0 +1,32 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/media_gallery/media_gallery_types.h"
+
+namespace media_gallery {
+
+CollectionRow::CollectionRow()
+ : entry_count(0),
Lei Zhang 2012/03/07 21:24:37 I think you want to init |id| to 0 in both ctors a
tpayne 2012/03/07 21:34:55 Done.
+ all_parsed(false) { }
+
+CollectionRow::CollectionRow(FilePath path,
+ base::Time last_modified_time,
+ int entry_count,
+ bool all_parsed)
+ : path(path),
+ last_modified_time(last_modified_time),
+ entry_count(entry_count),
+ all_parsed(all_parsed) { }
+
+CollectionRow::~CollectionRow() { }
+
+bool CollectionRow::operator==(const CollectionRow& row2) const {
+ return id == row2.id &&
+ path == row2.path &&
+ last_modified_time == row2.last_modified_time &&
+ entry_count == row2.entry_count &&
+ all_parsed == row2.all_parsed;
+}
+
+} // namespace media_gallery

Powered by Google App Engine
This is Rietveld 408576698