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

Unified Diff: webkit/plugins/ppapi/file_callbacks.h

Issue 9015009: Use the new callback tracker and delete the old one (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsPending Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/callbacks_unittest.cc ('k') | webkit/plugins/ppapi/file_callbacks.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/file_callbacks.h
diff --git a/webkit/plugins/ppapi/file_callbacks.h b/webkit/plugins/ppapi/file_callbacks.h
index 878c278438c939f13aa34f4a2940bb3bd90da95f..8c00336f552554d86327ad473fa57d7940d02d0f 100644
--- a/webkit/plugins/ppapi/file_callbacks.h
+++ b/webkit/plugins/ppapi/file_callbacks.h
@@ -21,19 +21,21 @@ namespace base {
class FilePath;
}
+namespace ppapi {
+class Resource;
+class TrackedCallback;
+}
+
namespace webkit {
namespace ppapi {
class PPB_DirectoryReader_Impl;
class PPB_FileSystem_Impl;
-class PluginModule;
-class TrackedCompletionCallback;
// Instances of this class are deleted by FileSystemDispatcher.
class FileCallbacks : public fileapi::FileSystemCallbackDispatcher {
public:
- FileCallbacks(const base::WeakPtr<PluginModule>& module,
- PP_Resource resource_id,
+ FileCallbacks(::ppapi::Resource* resource,
PP_CompletionCallback callback,
PP_FileInfo* info,
scoped_refptr<PPB_FileSystem_Impl> file_system,
@@ -52,12 +54,12 @@ class FileCallbacks : public fileapi::FileSystemCallbackDispatcher {
virtual void DidFail(base::PlatformFileError error_code);
virtual void DidWrite(int64 bytes, bool complete);
- scoped_refptr<TrackedCompletionCallback> GetTrackedCompletionCallback() const;
+ scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const;
private:
void RunCallback(base::PlatformFileError error_code);
- scoped_refptr<TrackedCompletionCallback> callback_;
+ scoped_refptr< ::ppapi::TrackedCallback> callback_;
PP_FileInfo* info_;
scoped_refptr<PPB_FileSystem_Impl> file_system_;
scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_;
« no previous file with comments | « webkit/plugins/ppapi/callbacks_unittest.cc ('k') | webkit/plugins/ppapi/file_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698