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

Unified Diff: base/files/file_proxy.cc

Issue 252583007: Replace FileUtilProxy with FileProxy in renderer_host/pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 years, 7 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
« no previous file with comments | « base/files/file_proxy.h ('k') | base/files/file_proxy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_proxy.cc
diff --git a/base/files/file_proxy.cc b/base/files/file_proxy.cc
index fa04d7c44e883aaebf3eef1c068839244aae3d96..291b98d1117fbc190a15e5b8b8e31d70ab1b3b74 100644
--- a/base/files/file_proxy.cc
+++ b/base/files/file_proxy.cc
@@ -265,10 +265,19 @@ bool FileProxy::IsValid() const {
return file_.IsValid();
}
+void FileProxy::SetFile(File file) {
+ DCHECK(!file_.IsValid());
+ file_ = file.Pass();
+}
+
File FileProxy::TakeFile() {
return file_.Pass();
}
+PlatformFile FileProxy::GetPlatformFile() const {
+ return file_.GetPlatformFile();
+}
+
bool FileProxy::Close(const StatusCallback& callback) {
DCHECK(file_.IsValid());
GenericFileHelper* helper = new GenericFileHelper(this, file_.Pass());
@@ -347,9 +356,4 @@ bool FileProxy::Flush(const StatusCallback& callback) {
Bind(&GenericFileHelper::Reply, Owned(helper), callback));
}
-void FileProxy::SetFile(File file) {
- DCHECK(!file_.IsValid());
- file_ = file.Pass();
-}
-
} // namespace base
« no previous file with comments | « base/files/file_proxy.h ('k') | base/files/file_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698