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

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

Issue 18986012: Media Galleries API Picasa: Make PicasaDataProvider handle async PMP and INI parsing robustly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0039-picasa-import-sandbox-ini-parsing
Patch Set: update comment 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
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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 EntryList* file_list) OVERRIDE; 42 EntryList* file_list) OVERRIDE;
43 virtual base::PlatformFileError GetLocalFilePath( 43 virtual base::PlatformFileError GetLocalFilePath(
44 fileapi::FileSystemOperationContext* context, 44 fileapi::FileSystemOperationContext* context,
45 const fileapi::FileSystemURL& url, 45 const fileapi::FileSystemURL& url,
46 base::FilePath* local_file_path) OVERRIDE; 46 base::FilePath* local_file_path) OVERRIDE;
47 47
48 private: 48 private:
49 void GetFileInfoWithFreshDataProvider( 49 void GetFileInfoWithFreshDataProvider(
50 scoped_ptr<fileapi::FileSystemOperationContext> context, 50 scoped_ptr<fileapi::FileSystemOperationContext> context,
51 const fileapi::FileSystemURL& url, 51 const fileapi::FileSystemURL& url,
52 const GetFileInfoCallback& callback); 52 const GetFileInfoCallback& callback,
53 bool success);
53 void ReadDirectoryWithFreshDataProvider( 54 void ReadDirectoryWithFreshDataProvider(
54 scoped_ptr<fileapi::FileSystemOperationContext> context, 55 scoped_ptr<fileapi::FileSystemOperationContext> context,
55 const fileapi::FileSystemURL& url, 56 const fileapi::FileSystemURL& url,
56 const ReadDirectoryCallback& callback); 57 const ReadDirectoryCallback& callback,
58 bool success);
57 59
58 virtual PicasaDataProvider* GetDataProvider(); 60 virtual PicasaDataProvider* GetDataProvider();
59 61
60 base::WeakPtrFactory<PicasaFileUtil> weak_factory_; 62 base::WeakPtrFactory<PicasaFileUtil> weak_factory_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil); 64 DISALLOW_COPY_AND_ASSIGN(PicasaFileUtil);
63 }; 65 };
64 66
65 } // namespace picasa 67 } // namespace picasa
66 68
67 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_ 69 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_PICASA_PICASA_FILE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698