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

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

Issue 22912008: Media Galleries API Picasa: Make PicasaFileUtil support album contents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h" 10 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h"
11 11
12 namespace picasa { 12 namespace picasa {
13 13
14 class PicasaDataProvider; 14 class PicasaDataProvider;
15 15
16 extern const char kPicasaDirAlbums[]; 16 extern const char kPicasaDirAlbums[];
17 extern const char kPicasaDirFolders[]; 17 extern const char kPicasaDirFolders[];
18 18
19 // PicasaFileUtil virtual directory structure example:
20 // - /albums/
21 // - /albums/albumname 2013-08-21/
22 // - /albums/albumname 2013-08-21/imagename.jpg
23 // - /albums/duplicatename 2013-08-21/
24 // - /albums/duplicatename 2013-08-21 (1)/
25 // - /folders/
26 // - /folders/My Pictures 2013-08-21/flower.jpg
27 // - /folders/Photos 2013-08-21/
19 class PicasaFileUtil : public chrome::NativeMediaFileUtil { 28 class PicasaFileUtil : public chrome::NativeMediaFileUtil {
20 public: 29 public:
21 explicit PicasaFileUtil(chrome::MediaPathFilter* media_path_filter); 30 explicit PicasaFileUtil(chrome::MediaPathFilter* media_path_filter);
22 virtual ~PicasaFileUtil(); 31 virtual ~PicasaFileUtil();
23 32
24 protected: 33 protected:
25 // NativeMediaFileUtil overrides. 34 // NativeMediaFileUtil overrides.
26 virtual void GetFileInfoOnTaskRunnerThread( 35 virtual void GetFileInfoOnTaskRunnerThread(
27 scoped_ptr<fileapi::FileSystemOperationContext> context, 36 scoped_ptr<fileapi::FileSystemOperationContext> context,
28 const fileapi::FileSystemURL& url, 37 const fileapi::FileSystemURL& url,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual PicasaDataProvider* GetDataProvider(); 69 virtual PicasaDataProvider* GetDataProvider();
61 70
62 base::WeakPtrFactory<PicasaFileUtil> weak_factory_; 71 base::WeakPtrFactory<PicasaFileUtil> weak_factory_;
63 72
64 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil); 73 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil);
65 }; 74 };
66 75
67 } // namespace picasa 76 } // namespace picasa
68 77
69 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_ 78 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/picasa/picasa_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698