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

Unified Diff: mojo/public/java/system/src/org/chromium/mojo/system/Core.java

Issue 741503003: Adding MOJO_HANDLE_SIGNAL_PEER_CLOSED to be notified when a peer is closed. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix go formatting Created 6 years, 1 month 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 | « mojo/public/go/system/impl/mojo_types.go ('k') | mojo/public/js/core.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/java/system/src/org/chromium/mojo/system/Core.java
diff --git a/mojo/public/java/system/src/org/chromium/mojo/system/Core.java b/mojo/public/java/system/src/org/chromium/mojo/system/Core.java
index d6c8e7da8d47eaaa9e11ec1408ad3e68f6e380a1..746acc1dab3d1ea9859f1bb12eed59e3f50b68c0 100644
--- a/mojo/public/java/system/src/org/chromium/mojo/system/Core.java
+++ b/mojo/public/java/system/src/org/chromium/mojo/system/Core.java
@@ -33,6 +33,7 @@ public interface Core {
private static final int FLAG_NONE = 0;
private static final int FLAG_READABLE = 1 << 0;
private static final int FLAG_WRITABLE = 1 << 1;
+ private static final int FLAG_PEER_CLOSED = 1 << 2;
/**
* Immutable signals.
@@ -64,6 +65,16 @@ public interface Core {
}
/**
+ * Change the peer closed bit of this signal.
+ *
+ * @param peer_closed the new value of the peer closed bit.
+ * @return this.
+ */
+ public HandleSignals setPeerClosed(boolean closed) {
+ return setFlag(FLAG_PEER_CLOSED, closed);
+ }
+
+ /**
* @return a signal with no bit set.
*/
public static HandleSignals none() {
« no previous file with comments | « mojo/public/go/system/impl/mojo_types.go ('k') | mojo/public/js/core.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698