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

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa/pmp_table_reader.h

Issue 14247034: Move Media Galleries FileAPI code out of webkit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cr-14352004
Patch Set: Add android ifdef. 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_FILEAPI_MEDIA_PICASA_PMP_TABLE_READER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PMP_TABLE_READER_H_
6 #define WEBKIT_FILEAPI_MEDIA_PICASA_PMP_TABLE_READER_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PMP_TABLE_READER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "webkit/storage/webkit_storage_export.h"
13 12
14 namespace base { 13 namespace base {
15 class FilePath; 14 class FilePath;
16 } 15 }
17 16
18 namespace picasaimport { 17 namespace picasaimport {
19 18
20 class PmpColumnReader; 19 class PmpColumnReader;
21 20
22 class WEBKIT_STORAGE_EXPORT_PRIVATE PmpTableReader { 21 class PmpTableReader {
23 public: 22 public:
24 PmpTableReader(); 23 PmpTableReader();
25 24
26 virtual ~PmpTableReader(); 25 virtual ~PmpTableReader();
27 26
28 // |columns| parameter will define, in-order, the columns returned by 27 // |columns| parameter will define, in-order, the columns returned by
29 // subsequent columns to GetColumns() if Init() succeeds. 28 // subsequent columns to GetColumns() if Init() succeeds.
30 bool Init(const std::string& table_name, 29 bool Init(const std::string& table_name,
31 const base::FilePath& directory_path, 30 const base::FilePath& directory_path,
32 const std::vector<std::string>& columns); 31 const std::vector<std::string>& columns);
33 32
34 // Returns a const "view" of the current contents of |column_readers_|. 33 // Returns a const "view" of the current contents of |column_readers_|.
35 std::vector<const PmpColumnReader*> GetColumns() const; 34 std::vector<const PmpColumnReader*> GetColumns() const;
36 35
37 uint32 RowCount() const; 36 uint32 RowCount() const;
38 37
39 private: 38 private:
40 ScopedVector<PmpColumnReader> column_readers_; 39 ScopedVector<PmpColumnReader> column_readers_;
41 uint32 max_row_count_; 40 uint32 max_row_count_;
42 41
43 DISALLOW_COPY_AND_ASSIGN(PmpTableReader); 42 DISALLOW_COPY_AND_ASSIGN(PmpTableReader);
44 }; 43 };
45 44
46 } // namespace picasaimport 45 } // namespace picasaimport
47 46
48 #endif // WEBKIT_FILEAPI_MEDIA_PICASA_PMP_TABLE_READER_H_ 47 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PMP_TABLE_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698