| OLD | NEW |
| (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_TABLE_READER_H_ | |
| 6 #define WEBKIT_FILEAPI_MEDIA_PICASA_PMP_TABLE_READER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/scoped_vector.h" | |
| 12 #include "webkit/storage/webkit_storage_export.h" | |
| 13 | |
| 14 namespace base { | |
| 15 class FilePath; | |
| 16 } | |
| 17 | |
| 18 namespace picasaimport { | |
| 19 | |
| 20 class PmpColumnReader; | |
| 21 | |
| 22 class WEBKIT_STORAGE_EXPORT_PRIVATE PmpTableReader { | |
| 23 public: | |
| 24 PmpTableReader(); | |
| 25 | |
| 26 virtual ~PmpTableReader(); | |
| 27 | |
| 28 // |columns| parameter will define, in-order, the columns returned by | |
| 29 // subsequent columns to GetColumns() if Init() succeeds. | |
| 30 bool Init(const std::string& table_name, | |
| 31 const base::FilePath& directory_path, | |
| 32 const std::vector<std::string>& columns); | |
| 33 | |
| 34 // Returns a const "view" of the current contents of |column_readers_|. | |
| 35 std::vector<const PmpColumnReader*> GetColumns() const; | |
| 36 | |
| 37 uint32 RowCount() const; | |
| 38 | |
| 39 private: | |
| 40 ScopedVector<PmpColumnReader> column_readers_; | |
| 41 uint32 max_row_count_; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(PmpTableReader); | |
| 44 }; | |
| 45 | |
| 46 } // namespace picasaimport | |
| 47 | |
| 48 #endif // WEBKIT_FILEAPI_MEDIA_PICASA_PMP_TABLE_READER_H_ | |
| OLD | NEW |