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

Unified Diff: mojo/edk/system/platform_handle_dispatcher.cc

Issue 1748503002: [mojo-edk] Add MojoWatch and MojoCancelWatch APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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/edk/system/platform_handle_dispatcher.cc
diff --git a/mojo/edk/system/platform_handle_dispatcher.cc b/mojo/edk/system/platform_handle_dispatcher.cc
index 3e708c25174f322b52606f3d6c3def1ad465dc8f..2afa8dcba8216265f4ba9f357b1d5f64cff2f901 100644
--- a/mojo/edk/system/platform_handle_dispatcher.cc
+++ b/mojo/edk/system/platform_handle_dispatcher.cc
@@ -24,7 +24,7 @@ Dispatcher::Type PlatformHandleDispatcher::GetType() const {
return Type::PLATFORM_HANDLE;
}
-MojoResult PlatformHandleDispatcher::Close() {
+MojoResult PlatformHandleDispatcher::Close(RequestContext* request_context) {
base::AutoLock lock(lock_);
if (is_closed_ || in_transit_)
return MOJO_RESULT_INVALID_ARGUMENT;
@@ -51,7 +51,7 @@ bool PlatformHandleDispatcher::EndSerialize(void* destination,
return true;
}
-bool PlatformHandleDispatcher::BeginTransit() {
+bool PlatformHandleDispatcher::BeginTransit(RequestContext* request_context) {
base::AutoLock lock(lock_);
if (in_transit_)
return false;
@@ -59,7 +59,8 @@ bool PlatformHandleDispatcher::BeginTransit() {
return in_transit_;
}
-void PlatformHandleDispatcher::CompleteTransitAndClose() {
+void PlatformHandleDispatcher::CompleteTransitAndClose(
+ RequestContext* request_context) {
base::AutoLock lock(lock_);
in_transit_ = false;
@@ -69,7 +70,7 @@ void PlatformHandleDispatcher::CompleteTransitAndClose() {
ignore_result(platform_handle_.release());
}
-void PlatformHandleDispatcher::CancelTransit() {
+void PlatformHandleDispatcher::CancelTransit(RequestContext* request_context) {
base::AutoLock lock(lock_);
in_transit_ = false;
}

Powered by Google App Engine
This is Rietveld 408576698