OLD | NEW |
1 // Copyright (c) 2011 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 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
(...skipping 17 matching lines...) Expand all Loading... |
29 namespace webkit { | 29 namespace webkit { |
30 namespace ppapi { | 30 namespace ppapi { |
31 | 31 |
32 class PPB_DirectoryReader_Impl; | 32 class PPB_DirectoryReader_Impl; |
33 class PPB_FileSystem_Impl; | 33 class PPB_FileSystem_Impl; |
34 | 34 |
35 // Instances of this class are deleted by FileSystemDispatcher. | 35 // Instances of this class are deleted by FileSystemDispatcher. |
36 class FileCallbacks : public fileapi::FileSystemCallbackDispatcher { | 36 class FileCallbacks : public fileapi::FileSystemCallbackDispatcher { |
37 public: | 37 public: |
38 FileCallbacks(::ppapi::Resource* resource, | 38 FileCallbacks(::ppapi::Resource* resource, |
39 PP_CompletionCallback 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 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 FilePath& unused); | 49 const FilePath& unused); |
(...skipping 12 matching lines...) Expand all Loading... |
62 scoped_refptr< ::ppapi::TrackedCallback> callback_; | 62 scoped_refptr< ::ppapi::TrackedCallback> callback_; |
63 PP_FileInfo* info_; | 63 PP_FileInfo* info_; |
64 scoped_refptr<PPB_FileSystem_Impl> file_system_; | 64 scoped_refptr<PPB_FileSystem_Impl> file_system_; |
65 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_; | 65 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace ppapi | 68 } // namespace ppapi |
69 } // namespace webkit | 69 } // namespace webkit |
70 | 70 |
71 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ | 71 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ |
OLD | NEW |