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

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

Issue 6767010: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « webkit/fileapi/webfilewriter_base_unittest.cc ('k') | webkit/plugins/ppapi/file_callbacks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 27 matching lines...) Expand all
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( 42 virtual void DidReadMetadata(
43 const base::PlatformFileInfo& file_info, 43 const base::PlatformFileInfo& file_info,
44 const FilePath& unused); 44 const FilePath& unused);
45 virtual void DidReadDirectory( 45 virtual void DidReadDirectory(
46 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more); 46 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more);
47 virtual void DidOpenFileSystem(const std::string&, 47 virtual void DidOpenFileSystem(const std::string&,
48 const FilePath& root_path); 48 const GURL& root_url);
49 virtual void DidFail(base::PlatformFileError error_code); 49 virtual void DidFail(base::PlatformFileError error_code);
50 virtual void DidWrite(int64 bytes, bool complete); 50 virtual void DidWrite(int64 bytes, bool complete);
51 51
52 scoped_refptr<TrackedCompletionCallback> GetTrackedCompletionCallback() const; 52 scoped_refptr<TrackedCompletionCallback> GetTrackedCompletionCallback() const;
53 53
54 private: 54 private:
55 void RunCallback(base::PlatformFileError error_code); 55 void RunCallback(base::PlatformFileError error_code);
56 56
57 scoped_refptr<TrackedCompletionCallback> callback_; 57 scoped_refptr<TrackedCompletionCallback> callback_;
58 PP_FileInfo_Dev* info_; 58 PP_FileInfo_Dev* info_;
59 scoped_refptr<PPB_FileSystem_Impl> file_system_; 59 scoped_refptr<PPB_FileSystem_Impl> file_system_;
60 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_; 60 scoped_refptr<PPB_DirectoryReader_Impl> directory_reader_;
61 }; 61 };
62 62
63 } // namespace ppapi 63 } // namespace ppapi
64 } // namespace webkit 64 } // namespace webkit
65 65
66 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ 66 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/webfilewriter_base_unittest.cc ('k') | webkit/plugins/ppapi/file_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698