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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #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.
6 #define WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUM_DATA_TABLE_READER_H_
7
8 #include "base/basictypes.h"
9 #include "base/files/file_path.h"
10 #include "base/time.h"
11 #include "webkit/storage/webkit_storage_export.h"
12
13 namespace picasaimport {
14
15 struct AlbumInfo {
16 AlbumInfo(const std::string& name, const base::Time& timestamp,
17 const std::string& uid);
18
19 std::string name;
20 base::Time timestamp;
21 std::string uid;
22 };
23
24 struct FolderInfo {
25 FolderInfo(const std::string& name, const base::Time& timestamp,
26 const base::FilePath& path);
27
28 std::string name;
29 base::Time timestamp;
30 base::FilePath path;
31 };
32
33 class WEBKIT_STORAGE_EXPORT_PRIVATE PicasaAlbumDataReader {
34 public:
35 PicasaAlbumDataReader();
36 virtual ~PicasaAlbumDataReader();
37
38 virtual bool Init(const base::FilePath& directory_path) OVERRIDE;
39
40 std::vector<FolderInfo> folders() {
41 return folders_;
42 }
43
44 std::vector<AlbumInfo> user_albums() {
45 return user_albums_;
46 }
47
48 private:
49 std::vector<FolderInfo> folders_;
50 std::vector<AlbumInfo> user_albums_;
51
52 DISALLOW_COPY_AND_ASSIGN (PicasaAlbumDataReader);
53 };
54
55 } // namespace picasaimport
56
57 #endif // WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUM_DATA_TABLE_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698