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

Unified Diff: services/android/intent_receiver.mojom

Issue 1061313003: Introduce intent manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review 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
new file mode 100644
index 0000000000000000000000000000000000000000..a61df69b7945fdce24a395b0ee09447b1d65a3a8
--- /dev/null
+++ b/services/android/intent_receiver.mojom
@@ -0,0 +1,24 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+[JavaPackage="org.chromium.mojo.intent"]
+module intent_receiver;
+
+// Service to interact with android intents.
+interface IntentReceiverManager {
+ // This method takes an |IntentReceiver| and returns a serialized intent.
+ // The serialized intent can be deserialized using an android parcel. The
+ // 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);
+};
+
+// Receiver interface, to be used with
+// |IntentReceiverManager.RegisterReceiver|.
+interface IntentReceiver {
+ OnIntent(array<uint8> intent);
+};
« no previous file with comments | « services/android/BUILD.gn ('k') | shell/BUILD.gn » ('j') | shell/android/android_handler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698