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

Side by Side Diff: webkit/fileapi/media/picasa/picasa_albumdata_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: Address vandebo's comments. 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_ALBUMDATA_TABLE_READER_H_
6 #define WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUMDATA_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 std::string name;
17 base::Time timestamp;
18 std::string uid;
19 };
20
21 struct FolderInfo {
22 std::string name;
23 base::Time timestamp;
24 base::FilePath path;
25 };
26
27 class WEBKIT_STORAGE_EXPORT_PRIVATE PicasaAlbumdataReader {
vandebo (ex-Chrome) 2013/04/08 19:02:30 nit: PicasaAlbumDataReader
tommycli 2013/04/08 23:27:10 Done.
28 public:
29 PicasaAlbumdataReader();
30 virtual ~PicasaAlbumdataReader();
31
32 virtual bool Init(const base::FilePath& directory_path) OVERRIDE;
33
34 std::vector<FolderInfo> folders() {
35 return folders_;
36 }
37
38 std::vector<AlbumInfo> user_albums() {
39 return user_albums_;
40 }
41
42 private:
43 std::vector<FolderInfo> folders_;
44 std::vector<AlbumInfo> user_albums_;
45
46 DISALLOW_COPY_AND_ASSIGN (PicasaAlbumdataReader);
47 };
48
49 } // namespace picasaimport
50
51 #endif // WEBKIT_FILEAPI_MEDIA_PICASA_PMP_ALBUMDATA_TABLE_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698