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

Unified Diff: trunk/src/content/browser/renderer_host/pepper/pepper_file_ref_host.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_file_ref_host.cc
===================================================================
--- trunk/src/content/browser/renderer_host/pepper/pepper_file_ref_host.cc (revision 221543)
+++ trunk/src/content/browser/renderer_host/pepper/pepper_file_ref_host.cc (working copy)
@@ -62,9 +62,9 @@
}
fs_type_ = fs_host->GetType();
+ // TODO(teravest): Add support for isolated filesystems.
if ((fs_type_ != PP_FILESYSTEMTYPE_LOCALPERSISTENT) &&
- (fs_type_ != PP_FILESYSTEMTYPE_LOCALTEMPORARY) &&
- (fs_type_ != PP_FILESYSTEMTYPE_ISOLATED)) {
+ (fs_type_ != PP_FILESYSTEMTYPE_LOCALTEMPORARY)) {
DLOG(ERROR) << "Unsupported filesystem type: " << fs_type_;
return;
}
@@ -116,6 +116,18 @@
return fileapi::FileSystemURL();
}
+std::string PepperFileRefHost::GetFileSystemURLSpec() const {
+ if (backend_)
+ return backend_->GetFileSystemURLSpec();
+ return std::string();
+}
+
+base::FilePath PepperFileRefHost::GetExternalPath() const {
+ if (backend_)
+ return backend_->GetExternalPath();
+ return base::FilePath();
+}
+
int32_t PepperFileRefHost::CanRead() const {
if (backend_)
return backend_->CanRead();

Powered by Google App Engine
This is Rietveld 408576698