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

Unified Diff: mojo/edk/system/data_pipe_producer_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/data_pipe_producer_dispatcher.cc
diff --git a/mojo/edk/system/data_pipe_producer_dispatcher.cc b/mojo/edk/system/data_pipe_producer_dispatcher.cc
index cbbade8b0249dfc177cf6ccb83eb584791421d6b..ed20067e864d56a16982d25a9ab08b8caa545a6b 100644
--- a/mojo/edk/system/data_pipe_producer_dispatcher.cc
+++ b/mojo/edk/system/data_pipe_producer_dispatcher.cc
@@ -79,7 +79,7 @@ Dispatcher::Type DataPipeProducerDispatcher::GetType() const {
return Type::DATA_PIPE_PRODUCER;
}
-MojoResult DataPipeProducerDispatcher::Close() {
+MojoResult DataPipeProducerDispatcher::Close(RequestContext* request_context) {
base::AutoLock lock(lock_);
DVLOG(1) << "Closing data pipe producer " << pipe_id_;
return CloseNoLock();
@@ -298,7 +298,7 @@ bool DataPipeProducerDispatcher::EndSerialize(
return true;
}
-bool DataPipeProducerDispatcher::BeginTransit() {
+bool DataPipeProducerDispatcher::BeginTransit(RequestContext* request_context) {
base::AutoLock lock(lock_);
if (in_transit_)
return false;
@@ -306,7 +306,8 @@ bool DataPipeProducerDispatcher::BeginTransit() {
return in_transit_;
}
-void DataPipeProducerDispatcher::CompleteTransitAndClose() {
+void DataPipeProducerDispatcher::CompleteTransitAndClose(
+ RequestContext* request_context) {
node_controller_->SetPortObserver(control_port_, nullptr);
base::AutoLock lock(lock_);
@@ -317,7 +318,8 @@ void DataPipeProducerDispatcher::CompleteTransitAndClose() {
CloseNoLock();
}
-void DataPipeProducerDispatcher::CancelTransit() {
+void DataPipeProducerDispatcher::CancelTransit(
+ RequestContext* request_context) {
base::AutoLock lock(lock_);
DCHECK(in_transit_);
in_transit_ = false;

Powered by Google App Engine
This is Rietveld 408576698