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

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
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..e12b1bd79da27645adad39f0372d70ccee5cd136 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,22 @@ struct AlbumInfo {
base::FilePath path;
};
+struct PicasaAlbumTableFiles {
+ explicit PicasaAlbumTableFiles(const base::FilePath& directory_path);
+
+ 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 +62,7 @@ class PicasaAlbumTableReader {
const std::vector<AlbumInfo>& folders() const;
private:
- const base::FilePath directory_path_;
+ PicasaAlbumTableFiles table_files_;
bool initialized_;

Powered by Google App Engine
This is Rietveld 408576698