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

Unified Diff: content/child/web_data_consumer_handle_impl.cc

Issue 2725133002: Mojo: Armed Watchers (Closed)
Patch Set: . Created 3 years, 9 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 | « content/child/web_data_consumer_handle_impl.h ('k') | content/common/message_port.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_data_consumer_handle_impl.cc
diff --git a/content/child/web_data_consumer_handle_impl.cc b/content/child/web_data_consumer_handle_impl.cc
index f81221d85b8e9f97d1cc1979109ea50f7cd983a2..b40f479861e1ba145c80e339da7f8bb6dd80d81c 100644
--- a/content/child/web_data_consumer_handle_impl.cc
+++ b/content/child/web_data_consumer_handle_impl.cc
@@ -37,7 +37,9 @@ class WebDataConsumerHandleImpl::Context
WebDataConsumerHandleImpl::ReaderImpl::ReaderImpl(
scoped_refptr<Context> context,
Client* client)
- : context_(context), handle_watcher_(FROM_HERE), client_(client) {
+ : context_(context),
+ handle_watcher_(FROM_HERE, mojo::SimpleWatcher::ArmingPolicy::AUTOMATIC),
+ client_(client) {
if (client_)
StartWatching();
}
@@ -130,7 +132,7 @@ Result WebDataConsumerHandleImpl::ReaderImpl::HandleReadResult(
}
void WebDataConsumerHandleImpl::ReaderImpl::StartWatching() {
- handle_watcher_.Start(
+ handle_watcher_.Watch(
context_->handle().get(), MOJO_HANDLE_SIGNAL_READABLE,
base::Bind(&ReaderImpl::OnHandleGotReadable, base::Unretained(this)));
}
« no previous file with comments | « content/child/web_data_consumer_handle_impl.h ('k') | content/common/message_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698