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

Unified Diff: chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h

Issue 17101030: Media Galleries API - Picasa: Change PMP Parsing to deal with PlatformFile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h
diff --git a/chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h b/chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h
index b4ef981d6620d05132931d182bc13e42fda281aa..274fa252cfb93ad8cd03d423e3c966af72e7dac9 100644
--- a/chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h
+++ b/chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
+#include "base/platform_file.h"
#include "base/time.h"
namespace picasa {
@@ -37,10 +38,23 @@ struct AlbumInfo {
base::FilePath path;
};
+struct PicasaAlbumTableFiles {
+ explicit PicasaAlbumTableFiles(const base::FilePath& directory_path);
+
+ // Special empty file used to confirm existence of table.
+ base::PlatformFile indicator_file;
+
+ base::PlatformFile category_file;
+ base::PlatformFile date_file;
+ base::PlatformFile filename_file;
+ base::PlatformFile name_file;
+ base::PlatformFile token_file;
+ base::PlatformFile uid_file;
+};
+
class PicasaAlbumTableReader {
public:
- // |directory_path| is Picasa's db3 directory where the PMP table is stored.
- explicit PicasaAlbumTableReader(const base::FilePath& directory_path);
+ explicit PicasaAlbumTableReader(const PicasaAlbumTableFiles& table_files);
virtual ~PicasaAlbumTableReader();
bool Init();
@@ -49,7 +63,7 @@ class PicasaAlbumTableReader {
const std::vector<AlbumInfo>& folders() const;
private:
- const base::FilePath directory_path_;
+ const PicasaAlbumTableFiles table_files_;
bool initialized_;
@@ -59,6 +73,8 @@ class PicasaAlbumTableReader {
DISALLOW_COPY_AND_ASSIGN(PicasaAlbumTableReader);
};
+void ClosePicasaAlbumTableFiles(PicasaAlbumTableFiles* table_files);
+
} // namespace picasa
#endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_ALBUM_TABLE_READER_H_
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/picasa/picasa_album_table_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698