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

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

Issue 9567035: Added MediaGalleryDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix windows compile 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.h
diff --git a/content/browser/media_gallery/media_gallery_types.h b/content/browser/media_gallery/media_gallery_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc1c1f1cb4959d30dfda3899ba0ee4d45da35ed0
--- /dev/null
+++ b/content/browser/media_gallery/media_gallery_types.h
@@ -0,0 +1,39 @@
+// 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.
+
+#ifndef CONTENT_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_TYPES_H_
+#define CONTENT_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_TYPES_H_
+
+#include "base/basictypes.h"
+#include "base/file_path.h"
+#include "base/time.h"
+
+namespace media_gallery {
+
+typedef int CollectionId;
+
+struct CollectionRow {
+ public:
+ CollectionRow();
+ CollectionRow(FilePath path,
+ base::Time last_modified_time,
+ int entry_count,
+ bool all_parsed);
+ virtual ~CollectionRow();
Lei Zhang 2012/03/07 01:41:42 This doesn't need to be virtual.
tpayne 2012/03/07 18:04:03 Done.
+ bool operator==(const CollectionRow& row2) const;
+
+ CollectionId id;
+ FilePath path;
+ base::Time last_modified_time;
+ int entry_count;
+ bool all_parsed;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CollectionRow);
+}; // class CollectionRow
Lei Zhang 2012/03/07 01:41:42 nit: no need for the comment.
tpayne 2012/03/07 18:04:03 Done.
+
+} // namespace media_gallery
+
Lei Zhang 2012/03/07 01:41:42 nit: extra blank line.
tpayne 2012/03/07 18:04:03 Done.
+
+#endif // CONTENT_BROWSER_MEDIA_GALLERY_MEDIA_GALLERY_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698