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

Side by Side Diff: webkit/plugins/ppapi/file_callbacks.h

Issue 12084077: FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
6 #define WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 6 #define WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 PP_FileInfo* info, 40 PP_FileInfo* info,
41 scoped_refptr<PPB_FileSystem_Impl> file_system, 41 scoped_refptr<PPB_FileSystem_Impl> file_system,
42 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader); 42 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader);
43 virtual ~FileCallbacks(); 43 virtual ~FileCallbacks();
44 44
45 // FileSystemCallbackDispatcher implementation. 45 // FileSystemCallbackDispatcher implementation.
46 virtual void DidSucceed(); 46 virtual void DidSucceed();
47 virtual void DidReadMetadata( 47 virtual void DidReadMetadata(
48 const base::PlatformFileInfo& file_info, 48 const base::PlatformFileInfo& file_info,
49 const base::FilePath& unused); 49 const base::FilePath& unused);
50 virtual void DidCreateSnapshotFile(
51 const base::PlatformFileInfo& file_info,
52 const FilePath& path);
brettw 2013/02/07 04:52:58 Please use base::FilePath now.
50 virtual void DidReadDirectory( 53 virtual void DidReadDirectory(
51 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more); 54 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more);
52 virtual void DidOpenFileSystem(const std::string&, 55 virtual void DidOpenFileSystem(const std::string&,
53 const GURL& root_url); 56 const GURL& root_url);
54 virtual void DidFail(base::PlatformFileError error_code); 57 virtual void DidFail(base::PlatformFileError error_code);
55 virtual void DidWrite(int64 bytes, bool complete); 58 virtual void DidWrite(int64 bytes, bool complete);
56 59
57 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const; 60 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const;
58 61
59 private: 62 private:
60 void RunCallback(base::PlatformFileError error_code); 63 void RunCallback(base::PlatformFileError error_code);
61 64
62 scoped_refptr< ::ppapi::TrackedCallback> callback_; 65 scoped_refptr< ::ppapi::TrackedCallback> callback_;
63 PP_FileInfo* info_; 66 PP_FileInfo* info_;
64 scoped_refptr<PPB_FileSystem_Impl> file_system_; 67 scoped_refptr<PPB_FileSystem_Impl> file_system_;
65 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_; 68 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_;
66 }; 69 };
67 70
68 } // namespace ppapi 71 } // namespace ppapi
69 } // namespace webkit 72 } // namespace webkit
70 73
71 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 74 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698