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

Unified Diff: webkit/fileapi/media/picasa/picasa_album_data_reader.h

Issue 13529028: PicasaAlbumTableReader for Media Galleries API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0005-picasa-import-pmp-reader
Patch Set: Missing include. Created 7 years, 8 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: webkit/fileapi/media/picasa/picasa_album_data_reader.h
diff --git a/webkit/fileapi/media/picasa/picasa_album_data_reader.h b/webkit/fileapi/media/picasa/picasa_album_data_reader.h
new file mode 100644
index 0000000000000000000000000000000000000000..6f3da1a1a5bfc486f8a5a2b0bbfee646d0745f11
--- /dev/null
+++ b/webkit/fileapi/media/picasa/picasa_album_data_reader.h
@@ -0,0 +1,57 @@
+// Copyright 2013 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 WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUM_DATA_TABLE_READER_H_
vandebo (ex-Chrome) 2013/04/09 19:16:56 Filename and #define should match.
tommycli 2013/04/11 18:24:05 Done.
+#define WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUM_DATA_TABLE_READER_H_
+
+#include "base/basictypes.h"
+#include "base/files/file_path.h"
+#include "base/time.h"
+#include "webkit/storage/webkit_storage_export.h"
+
+namespace picasaimport {
+
+struct AlbumInfo {
+ AlbumInfo(const std::string& name, const base::Time& timestamp,
+ const std::string& uid);
+
+ std::string name;
+ base::Time timestamp;
+ std::string uid;
+};
+
+struct FolderInfo {
+ FolderInfo(const std::string& name, const base::Time& timestamp,
+ const base::FilePath& path);
+
+ std::string name;
+ base::Time timestamp;
+ base::FilePath path;
+};
+
+class WEBKIT_STORAGE_EXPORT_PRIVATE PicasaAlbumDataReader {
+ public:
+ PicasaAlbumDataReader();
+ virtual ~PicasaAlbumDataReader();
+
+ virtual bool Init(const base::FilePath& directory_path) OVERRIDE;
+
+ std::vector<FolderInfo> folders() {
+ return folders_;
+ }
+
+ std::vector<AlbumInfo> user_albums() {
+ return user_albums_;
+ }
+
+ private:
+ std::vector<FolderInfo> folders_;
+ std::vector<AlbumInfo> user_albums_;
+
+ DISALLOW_COPY_AND_ASSIGN (PicasaAlbumDataReader);
+};
+
+} // namespace picasaimport
+
+#endif // WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUM_DATA_TABLE_READER_H_

Powered by Google App Engine
This is Rietveld 408576698