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

Unified Diff: services/android/intent_receiver.mojom

Issue 1116653002: Introduce authentication service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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: services/android/intent_receiver.mojom
diff --git a/services/android/intent_receiver.mojom b/services/android/intent_receiver.mojom
index a61df69b7945fdce24a395b0ee09447b1d65a3a8..6a299c4943381ca42e7a68fedea14efbc045f749 100644
--- a/services/android/intent_receiver.mojom
+++ b/services/android/intent_receiver.mojom
@@ -12,13 +12,22 @@ interface IntentReceiverManager {
// caller can then transform this intent into a PendingIntent using
// |PendingIntent#getService| and send it to another android application.
// Whenever the pending intent is executed, the receiver will be called with
- // the content of the received intent. To be noted: this will fail if the
- // received intent is active (contains either a Binder or a file descriptor).
- RegisterReceiver(IntentReceiver receiver) => (array<uint8> intent);
+ // the content of the received intent.
+ // To be noted, this will fail if the received intent is active (contains
+ // either a Binder or a file descriptor).
+ RegisterIntentReceiver(IntentReceiver receiver) => (array<uint8>? intent);
+
+ // This method takes an |IntentReceiver| and returns a serialized intent.
+ // The serialized intent can be deserialized using an android parcel. The
+ // caller can then add an intent it wants the system to send using
+ // |Activity#startActivityForResult| and then send it using
+ // |Context#startService|. Whenever the started activity sends a result, the
+ // receiver will be called with the content of the received intent. If the
+ // activity is cancelled, the receiver will be closed.
+ RegisterActivityResult(IntentReceiver receiver) => (array<uint8>? intent);
ppi 2015/04/29 13:32:23 Should this be called RegisterStartActivityForResu
tonyg 2015/04/29 13:47:43 [+alhaad] Just curious if this new API also helps
qsr 2015/04/29 14:22:19 I don't know for sure. It depends a lot on which A
qsr 2015/04/29 14:22:19 Renamed: RegisterActivityResultReceiver
};
-// Receiver interface, to be used with
-// |IntentReceiverManager.RegisterReceiver|.
+// Receiver interface, to be used with |IntentReceiverManager|.
interface IntentReceiver {
OnIntent(array<uint8> intent);
};

Powered by Google App Engine
This is Rietveld 408576698