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

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

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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
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_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FILE_UTIL_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FILE_UTIL_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_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: 19 // PicasaFileUtil virtual directory structure example:
20 // - /albums/ 20 // - /albums/
21 // - /albums/albumname 2013-08-21/ 21 // - /albums/albumname 2013-08-21/
22 // - /albums/albumname 2013-08-21/imagename.jpg 22 // - /albums/albumname 2013-08-21/imagename.jpg
23 // - /albums/duplicatename 2013-08-21/ 23 // - /albums/duplicatename 2013-08-21/
24 // - /albums/duplicatename 2013-08-21 (1)/ 24 // - /albums/duplicatename 2013-08-21 (1)/
25 // - /folders/ 25 // - /folders/
26 // - /folders/My Pictures 2013-08-21/flower.jpg 26 // - /folders/My Pictures 2013-08-21/flower.jpg
27 // - /folders/Photos 2013-08-21/ 27 // - /folders/Photos 2013-08-21/
28 class PicasaFileUtil : public chrome::NativeMediaFileUtil { 28 class PicasaFileUtil : public NativeMediaFileUtil {
29 public: 29 public:
30 explicit PicasaFileUtil(chrome::MediaPathFilter* media_path_filter); 30 explicit PicasaFileUtil(MediaPathFilter* media_path_filter);
31 virtual ~PicasaFileUtil(); 31 virtual ~PicasaFileUtil();
32 32
33 protected: 33 protected:
34 // NativeMediaFileUtil overrides. 34 // NativeMediaFileUtil overrides.
35 virtual void GetFileInfoOnTaskRunnerThread( 35 virtual void GetFileInfoOnTaskRunnerThread(
36 scoped_ptr<fileapi::FileSystemOperationContext> context, 36 scoped_ptr<fileapi::FileSystemOperationContext> context,
37 const fileapi::FileSystemURL& url, 37 const fileapi::FileSystemURL& url,
38 const GetFileInfoCallback& callback) OVERRIDE; 38 const GetFileInfoCallback& callback) OVERRIDE;
39 virtual void ReadDirectoryOnTaskRunnerThread( 39 virtual void ReadDirectoryOnTaskRunnerThread(
40 scoped_ptr<fileapi::FileSystemOperationContext> context, 40 scoped_ptr<fileapi::FileSystemOperationContext> context,
(...skipping 28 matching lines...) Expand all
69 virtual PicasaDataProvider* GetDataProvider(); 69 virtual PicasaDataProvider* GetDataProvider();
70 70
71 base::WeakPtrFactory<PicasaFileUtil> weak_factory_; 71 base::WeakPtrFactory<PicasaFileUtil> weak_factory_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil); 73 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil);
74 }; 74 };
75 75
76 } // namespace picasa 76 } // namespace picasa
77 77
78 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FILE_UTIL_H_ 78 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698