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

Unified Diff: mojo/edk/js/drain_data.cc

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanup Created 5 years, 2 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/js/drain_data.cc
diff --git a/third_party/mojo/src/mojo/edk/js/drain_data.cc b/mojo/edk/js/drain_data.cc
similarity index 94%
copy from third_party/mojo/src/mojo/edk/js/drain_data.cc
copy to mojo/edk/js/drain_data.cc
index 137b76bff09143e4a72f12fb58bce7f6f75ff4a8..d8fa0917cf304e7135b50734498bc328e0ad6cc3 100644
--- a/third_party/mojo/src/mojo/edk/js/drain_data.cc
+++ b/mojo/edk/js/drain_data.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "third_party/mojo/src/mojo/edk/js/drain_data.h"
+#include "mojo/edk/js/drain_data.h"
#include "gin/array_buffer.h"
#include "gin/converter.h"
@@ -13,7 +13,7 @@
#include "mojo/public/cpp/system/core.h"
namespace mojo {
-namespace js {
+namespace edk {
DrainData::DrainData(v8::Isolate* isolate, mojo::Handle handle)
: isolate_(isolate),
@@ -42,8 +42,11 @@ DrainData::~DrainData() {
void DrainData::WaitForData() {
wait_id_ = Environment::GetDefaultAsyncWaiter()->AsyncWait(
- 2, handle_.get().value(), MOJO_HANDLE_SIGNAL_READABLE,
- MOJO_DEADLINE_INDEFINITE, &DrainData::WaitCompleted, this);
+ handle_.get().value(),
+ MOJO_HANDLE_SIGNAL_READABLE,
+ MOJO_DEADLINE_INDEFINITE,
+ &DrainData::WaitCompleted,
+ this);
}
void DrainData::DataReady(MojoResult result) {
@@ -124,5 +127,5 @@ void DrainData::DeliverData(MojoResult result) {
delete this;
}
-} // namespace js
+} // namespace edk
} // namespace mojo
« no previous file with comments | « mojo/edk/js/drain_data.h ('k') | mojo/edk/js/handle.h » ('j') | mojo/edk/system/core.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698