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

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

Issue 7618039: PPB_URLRequestInfo::AppendFileToBody using sync ipc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 4 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) 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_PPB_FILE_REF_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual int32_t MakeDirectory(PP_Bool make_ancestors, 47 virtual int32_t MakeDirectory(PP_Bool make_ancestors,
48 PP_CompletionCallback callback) OVERRIDE; 48 PP_CompletionCallback callback) OVERRIDE;
49 virtual int32_t Touch(PP_Time last_access_time, 49 virtual int32_t Touch(PP_Time last_access_time,
50 PP_Time last_modified_time, 50 PP_Time last_modified_time,
51 PP_CompletionCallback callback) OVERRIDE; 51 PP_CompletionCallback callback) OVERRIDE;
52 virtual int32_t Delete(PP_CompletionCallback callback) OVERRIDE; 52 virtual int32_t Delete(PP_CompletionCallback callback) OVERRIDE;
53 virtual int32_t Rename(PP_Resource new_file_ref, 53 virtual int32_t Rename(PP_Resource new_file_ref,
54 PP_CompletionCallback callback) OVERRIDE; 54 PP_CompletionCallback callback) OVERRIDE;
55 55
56 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); } 56 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); }
57
58 // Returns the virtual path (i.e., the path that the pepper plugin sees)
57 const std::string& virtual_path() const { return virtual_path_; } 59 const std::string& virtual_path() const { return virtual_path_; }
58 60
59 // Returns the virtual path (i.e., the path that the pepper plugin sees)
60 // Returns the system path corresponding to this file. 61 // Returns the system path corresponding to this file.
61 FilePath GetSystemPath() const; 62 FilePath GetSystemPath() const;
62 63
63 // Returns the FileSystem API URL corresponding to this file. 64 // Returns the FileSystem API URL corresponding to this file.
64 GURL GetFileSystemURL() const; 65 GURL GetFileSystemURL() const;
65 66
66 private: 67 private:
67 // Many mutation functions are allow only to non-external filesystems, This 68 // Many mutation functions are allow only to non-external filesystems, This
68 // function returns true if the filesystem is opened and isn't external as an 69 // function returns true if the filesystem is opened and isn't external as an
69 // access check for these functions. 70 // access check for these functions.
70 bool IsValidNonExternalFileSystem() const; 71 bool IsValidNonExternalFileSystem() const;
71 72
72 scoped_refptr<PPB_FileSystem_Impl> file_system_; 73 scoped_refptr<PPB_FileSystem_Impl> file_system_;
73 std::string virtual_path_; // UTF-8 encoded 74 std::string virtual_path_; // UTF-8 encoded
74 FilePath system_path_; 75 FilePath system_path_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 77 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
77 }; 78 };
78 79
79 } // namespace ppapi 80 } // namespace ppapi
80 } // namespace webkit 81 } // namespace webkit
81 82
82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 83 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698