OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ |
7 | 7 |
8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
9 #include "base/weak_ptr.h" | 9 #include "base/weak_ptr.h" |
10 #include "third_party/ppapi/c/pp_completion_callback.h" | 10 #include "third_party/ppapi/c/pp_completion_callback.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 FileCallbacks(const base::WeakPtr<PluginModule>& module, | 27 FileCallbacks(const base::WeakPtr<PluginModule>& module, |
28 PP_CompletionCallback callback, | 28 PP_CompletionCallback callback, |
29 PP_FileInfo_Dev* info, | 29 PP_FileInfo_Dev* info, |
30 scoped_refptr<FileSystem> file_system); | 30 scoped_refptr<FileSystem> file_system); |
31 virtual ~FileCallbacks(); | 31 virtual ~FileCallbacks(); |
32 | 32 |
33 // FileSystemCallbackDispatcher implementation. | 33 // FileSystemCallbackDispatcher implementation. |
34 virtual void DidSucceed(); | 34 virtual void DidSucceed(); |
35 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info); | 35 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info); |
36 virtual void DidReadDirectory( | 36 virtual void DidReadDirectory( |
37 const std::vector<base::file_util_proxy::Entry>&, bool); | 37 const std::vector<base::FileUtilProxy::Entry>&, bool); |
38 virtual void DidOpenFileSystem(const std::string&, | 38 virtual void DidOpenFileSystem(const std::string&, |
39 const FilePath& root_path); | 39 const FilePath& root_path); |
40 virtual void DidFail(base::PlatformFileError error_code); | 40 virtual void DidFail(base::PlatformFileError error_code); |
41 virtual void DidWrite(int64 bytes, bool complete); | 41 virtual void DidWrite(int64 bytes, bool complete); |
42 | 42 |
43 private: | 43 private: |
44 void RunCallback(base::PlatformFileError error_code); | 44 void RunCallback(base::PlatformFileError error_code); |
45 | 45 |
46 base::WeakPtr<pepper::PluginModule> module_; | 46 base::WeakPtr<pepper::PluginModule> module_; |
47 PP_CompletionCallback callback_; | 47 PP_CompletionCallback callback_; |
48 PP_FileInfo_Dev* info_; | 48 PP_FileInfo_Dev* info_; |
49 scoped_refptr<FileSystem> file_system_; | 49 scoped_refptr<FileSystem> file_system_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace pepper | 52 } // namespace pepper |
53 | 53 |
54 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ | 54 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_FILE_CALLBACKS_H_ |
OLD | NEW |