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

Unified Diff: trunk/src/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc

Issue 23647008: Revert 221284 "Pepper: Move FileRef to the "new" resource proxy." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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: trunk/src/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc
===================================================================
--- trunk/src/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc (revision 221543)
+++ trunk/src/content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc (working copy)
@@ -71,6 +71,19 @@
return fs_url_;
}
+std::string PepperInternalFileRefBackend::GetFileSystemURLSpec() const {
+ if (fs_host_.get() && fs_host_->IsOpened() &&
+ fs_host_->GetRootUrl().is_valid()) {
+ return fs_host_->GetRootUrl().Resolve(
+ net::EscapePath(path_.substr(1))).spec();
+ }
+ return std::string();
+}
+
+base::FilePath PepperInternalFileRefBackend::GetExternalPath() const {
+ return base::FilePath();
+}
+
scoped_refptr<fileapi::FileSystemContext>
PepperInternalFileRefBackend::GetFileSystemContext() const {
if (!fs_host_.get())
@@ -210,7 +223,7 @@
context.params.set_result(ppapi::PlatformFileErrorToPepperError(error));
- std::vector<ppapi::FileRefCreateInfo> infos;
+ std::vector<ppapi::FileRef_CreateInfo> infos;
std::vector<PP_FileType> file_types;
if (error == base::PLATFORM_FILE_OK && fs_host_.get()) {
std::string dir_path = path_;
@@ -224,7 +237,7 @@
else
file_types.push_back(PP_FILETYPE_REGULAR);
- ppapi::FileRefCreateInfo info;
+ ppapi::FileRef_CreateInfo info;
info.file_system_type = fs_type_;
info.file_system_plugin_resource = fs_host_->pp_resource();
std::string path =

Powered by Google App Engine
This is Rietveld 408576698