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

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 28 matching lines...) Expand all
39 scoped_refptr< ::ppapi::TrackedCallback> callback, 39 scoped_refptr< ::ppapi::TrackedCallback> callback,
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 virtual ~FileCallbacks(); 42 virtual ~FileCallbacks();
43 43
44 // FileSystemCallbackDispatcher implementation. 44 // FileSystemCallbackDispatcher implementation.
45 virtual void DidSucceed(); 45 virtual void DidSucceed();
46 virtual void DidReadMetadata( 46 virtual void DidReadMetadata(
47 const base::PlatformFileInfo& file_info, 47 const base::PlatformFileInfo& file_info,
48 const base::FilePath& unused); 48 const base::FilePath& unused);
49 virtual void DidCreateSnapshotFile(
50 const base::PlatformFileInfo& file_info,
51 const base::FilePath& path);
49 virtual void DidReadDirectory( 52 virtual void DidReadDirectory(
50 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more); 53 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more);
51 virtual void DidOpenFileSystem(const std::string&, 54 virtual void DidOpenFileSystem(const std::string&,
52 const GURL& root_url); 55 const GURL& root_url);
53 virtual void DidFail(base::PlatformFileError error_code); 56 virtual void DidFail(base::PlatformFileError error_code);
54 virtual void DidWrite(int64 bytes, bool complete); 57 virtual void DidWrite(int64 bytes, bool complete);
55 58
56 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const; 59 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const;
57 60
58 private: 61 private:
59 void RunCallback(base::PlatformFileError error_code); 62 void RunCallback(base::PlatformFileError error_code);
60 63
61 scoped_refptr< ::ppapi::TrackedCallback> callback_; 64 scoped_refptr< ::ppapi::TrackedCallback> callback_;
62 PP_FileInfo* info_; 65 PP_FileInfo* info_;
63 scoped_refptr<PPB_FileSystem_Impl> file_system_; 66 scoped_refptr<PPB_FileSystem_Impl> file_system_;
64 }; 67 };
65 68
66 } // namespace ppapi 69 } // namespace ppapi
67 } // namespace webkit 70 } // namespace webkit
68 71
69 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 72 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_callback_dispatcher.h ('k') | webkit/plugins/ppapi/file_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698