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

Unified Diff: ppapi/thunk/ppb_file_ref_api.h

Issue 7706021: Convert FileRefImpl and URLRequestInfo to shared_impl. (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 side-by-side diff with in-line comments
Download patch
Index: ppapi/thunk/ppb_file_ref_api.h
diff --git a/ppapi/thunk/ppb_file_ref_api.h b/ppapi/thunk/ppb_file_ref_api.h
index be46cefabf7412645b317e4dc5c943d7605ccd51..a4557fa6fdf6f3844d688ddd5543615b6f30b17b 100644
--- a/ppapi/thunk/ppb_file_ref_api.h
+++ b/ppapi/thunk/ppb_file_ref_api.h
@@ -8,6 +8,9 @@
#include "ppapi/c/ppb_file_ref.h"
namespace ppapi {
+
+struct PPB_FileRef_CreateInfo;
+
namespace thunk {
class PPB_FileRef_API {
@@ -15,8 +18,8 @@ class PPB_FileRef_API {
virtual ~PPB_FileRef_API() {}
virtual PP_FileSystemType GetFileSystemType() const = 0;
- virtual PP_Var GetName() const = 0;
- virtual PP_Var GetPath() const = 0;
+ virtual PP_Var GetName() = 0;
+ virtual PP_Var GetPath() = 0;
virtual PP_Resource GetParent() = 0;
virtual int32_t MakeDirectory(PP_Bool make_ancestors,
PP_CompletionCallback callback) = 0;
@@ -26,6 +29,10 @@ class PPB_FileRef_API {
virtual int32_t Delete(PP_CompletionCallback callback) = 0;
virtual int32_t Rename(PP_Resource new_file_ref,
PP_CompletionCallback callback) = 0;
+
+ // Intermal function for use in proxying. Returns the internal CreateInfo
+ // (the contained resource does not carry a ref on behalf of the caller).
+ virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0;
};
} // namespace thunk

Powered by Google App Engine
This is Rietveld 408576698