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

Unified Diff: mojo/services/files/public/c/lib/file_fd_impl.cc

Issue 1150563003: Rename InterfacePtr's WaitForIncomingMethodCall() -> WaitForIncomingResponse(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
Index: mojo/services/files/public/c/lib/file_fd_impl.cc
diff --git a/mojo/services/files/public/c/lib/file_fd_impl.cc b/mojo/services/files/public/c/lib/file_fd_impl.cc
index 58d957ca280a3f7c83badd4cc2866e90584b69f3..801da1488f51b84be76cf339df163b7fb88ba276 100644
--- a/mojo/services/files/public/c/lib/file_fd_impl.cc
+++ b/mojo/services/files/public/c/lib/file_fd_impl.cc
@@ -33,7 +33,7 @@ bool FileFDImpl::Close() {
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
file_->Close(Capture(&error));
- if (!file_.WaitForIncomingMethodCall())
+ if (!file_.WaitForIncomingResponse())
return errno_setter.Set(ESTALE);
return errno_setter.Set(ErrorToErrno(error));
}
@@ -45,7 +45,7 @@ std::unique_ptr<FDImpl> FileFDImpl::Dup() {
mojo::files::FilePtr new_file;
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
file_->Dup(mojo::GetProxy(&new_file), Capture(&error));
- if (!file_.WaitForIncomingMethodCall()) {
+ if (!file_.WaitForIncomingResponse()) {
errno_setter.Set(ESTALE);
return nullptr;
}
@@ -64,7 +64,7 @@ bool FileFDImpl::Ftruncate(mojio_off_t length) {
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
file_->Truncate(static_cast<int64_t>(length), Capture(&error));
- if (!file_.WaitForIncomingMethodCall())
+ if (!file_.WaitForIncomingResponse())
return errno_setter.Set(ESTALE);
return errno_setter.Set(ErrorToErrno(error));
}
@@ -93,7 +93,7 @@ mojio_off_t FileFDImpl::Lseek(mojio_off_t offset, int whence) {
int64_t position = -1;
file_->Seek(static_cast<int64_t>(offset), mojo_whence,
Capture(&error, &position));
- if (!file_.WaitForIncomingMethodCall()) {
+ if (!file_.WaitForIncomingResponse()) {
errno_setter.Set(ESTALE);
return -1;
}
@@ -141,7 +141,7 @@ mojio_ssize_t FileFDImpl::Read(void* buf, size_t count) {
mojo::Array<uint8_t> bytes_read;
file_->Read(static_cast<uint32_t>(count), 0, mojo::files::WHENCE_FROM_CURRENT,
Capture(&error, &bytes_read));
- if (!file_.WaitForIncomingMethodCall()) {
+ if (!file_.WaitForIncomingResponse()) {
errno_setter.Set(ESTALE);
return -1;
}
@@ -188,7 +188,7 @@ mojio_ssize_t FileFDImpl::Write(const void* buf, size_t count) {
uint32_t num_bytes_written = 0;
file_->Write(bytes_to_write.Pass(), 0, mojo::files::WHENCE_FROM_CURRENT,
Capture(&error, &num_bytes_written));
- if (!file_.WaitForIncomingMethodCall()) {
+ if (!file_.WaitForIncomingResponse()) {
errno_setter.Set(ESTALE);
return -1;
}
@@ -218,7 +218,7 @@ bool FileFDImpl::Fstat(struct mojio_stat* buf) {
mojo::files::FileInformationPtr file_info;
mojo::files::Error error = mojo::files::ERROR_INTERNAL;
file_->Stat(Capture(&error, &file_info));
- if (!file_.WaitForIncomingMethodCall()) {
+ if (!file_.WaitForIncomingResponse()) {
errno_setter.Set(ESTALE);
return false;
}
« no previous file with comments | « mojo/services/files/public/c/lib/directory_wrapper.cc ('k') | mojo/services/files/public/c/tests/mojio_impl_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698