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

Unified Diff: shell/android/intent_manager_impl.h

Issue 1061313003: Introduce intent manager. (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: shell/android/intent_manager_impl.h
diff --git a/shell/android/intent_manager_impl.h b/shell/android/intent_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..4823a970cf4f9915b1b91e14ce71752943de5ced
--- /dev/null
+++ b/shell/android/intent_manager_impl.h
@@ -0,0 +1,31 @@
+// 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.
+
+#ifndef SHELL_ANDROID_INTENT_MANAGER_IMPL_H_
+#define SHELL_ANDROID_INTENT_MANAGER_IMPL_H_
+
+#include "base/android/jni_android.h"
+#include "mojo/common/weak_binding_set.h"
+#include "services/android/intent.mojom.h"
+
+namespace mojo {
+namespace shell {
+
+class IntentManagerImpl : public intent::IntentManager {
ppi 2015/04/07 15:42:14 Why this has to be implemented in C++ (ie. why not
qsr 2015/04/08 10:04:14 Because we have currently no way to register and u
+ public:
+ void Bind(InterfaceRequest<intent::IntentManager> request);
+
+ private:
+ void GetIntent(intent::IntentReceiverPtr receiver,
ppi 2015/04/07 15:42:14 could you indicate the interface we're overriding
qsr 2015/04/08 10:04:14 Done.
+ const GetIntentCallback& callback) override;
+
+ WeakBindingSet<intent::IntentManager> bindings_;
+};
+
+bool RegisterIntentReceiverRegistry(JNIEnv* env);
+
+} // namespace shell
+} // namespace mojo
+
+#endif // SHELL_ANDROID_INTENT_MANAGER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698