Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / utility / media_galleries / picasa_album_table_reader.h
blob84030aa8c196b2eb048aa98cdefcbad111f48075
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.
5 #ifndef CHROME_UTILITY_MEDIA_GALLERIES_PICASA_ALBUM_TABLE_READER_H_
6 #define CHROME_UTILITY_MEDIA_GALLERIES_PICASA_ALBUM_TABLE_READER_H_
8 #include <vector>
10 #include "base/basictypes.h"
11 #include "chrome/common/media_galleries/picasa_types.h"
13 namespace picasa {
15 class PicasaAlbumTableReader {
16 public:
17 // This class takes ownership of |table_files| and will close them.
18 explicit PicasaAlbumTableReader(AlbumTableFiles table_files);
19 ~PicasaAlbumTableReader();
21 bool Init();
23 const std::vector<AlbumInfo>& albums() const;
24 const std::vector<AlbumInfo>& folders() const;
26 private:
27 AlbumTableFiles table_files_;
29 bool initialized_;
31 std::vector<AlbumInfo> albums_;
32 std::vector<AlbumInfo> folders_;
34 DISALLOW_COPY_AND_ASSIGN(PicasaAlbumTableReader);
37 } // namespace picasa
39 #endif // CHROME_UTILITY_MEDIA_GALLERIES_PICASA_ALBUM_TABLE_READER_H_