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

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

Issue 6286038: Add initial code to do filename munging in the FileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 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_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 "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
10 #include "base/weak_ptr.h" 10 #include "base/weak_ptr.h"
(...skipping 23 matching lines...) Expand all
34 PP_CompletionCallback callback, 34 PP_CompletionCallback callback,
35 PP_FileInfo_Dev* info, 35 PP_FileInfo_Dev* info,
36 scoped_refptr<PPB_FileSystem_Impl> file_system, 36 scoped_refptr<PPB_FileSystem_Impl> file_system,
37 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader); 37 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader);
38 virtual ~FileCallbacks(); 38 virtual ~FileCallbacks();
39 39
40 // FileSystemCallbackDispatcher implementation. 40 // FileSystemCallbackDispatcher implementation.
41 virtual void DidSucceed(); 41 virtual void DidSucceed();
42 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info); 42 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info);
43 virtual void DidReadDirectory( 43 virtual void DidReadDirectory(
44 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more); 44 const std::vector<base::FileUtilProxyBase::Entry>& entries,
45 bool has_more);
45 virtual void DidOpenFileSystem(const std::string&, 46 virtual void DidOpenFileSystem(const std::string&,
46 const FilePath& root_path); 47 const FilePath& root_path);
47 virtual void DidFail(base::PlatformFileError error_code); 48 virtual void DidFail(base::PlatformFileError error_code);
48 virtual void DidWrite(int64 bytes, bool complete); 49 virtual void DidWrite(int64 bytes, bool complete);
49 50
50 scoped_refptr<TrackedCompletionCallback> GetTrackedCompletionCallback() const; 51 scoped_refptr<TrackedCompletionCallback> GetTrackedCompletionCallback() const;
51 52
52 private: 53 private:
53 void RunCallback(base::PlatformFileError error_code); 54 void RunCallback(base::PlatformFileError error_code);
54 55
55 scoped_refptr<TrackedCompletionCallback> callback_; 56 scoped_refptr<TrackedCompletionCallback> callback_;
56 PP_FileInfo_Dev* info_; 57 PP_FileInfo_Dev* info_;
57 scoped_refptr<PPB_FileSystem_Impl> file_system_; 58 scoped_refptr<PPB_FileSystem_Impl> file_system_;
58 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_; 59 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_;
59 }; 60 };
60 61
61 } // namespace ppapi 62 } // namespace ppapi
62 } // namespace webkit 63 } // namespace webkit
63 64
64 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 65 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698