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

Unified Diff: shell/android/intent_receiver_manager_impl.h

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
« no previous file with comments | « shell/android/intent_receiver_manager_factory.cc ('k') | shell/android/intent_receiver_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/intent_receiver_manager_impl.h
diff --git a/shell/android/intent_receiver_manager_impl.h b/shell/android/intent_receiver_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..769eee5884c21fc99fcd2591fc0a284620518457
--- /dev/null
+++ b/shell/android/intent_receiver_manager_impl.h
@@ -0,0 +1,33 @@
+// 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_RECEIVER_MANAGER_IMPL_H_
+#define SHELL_ANDROID_INTENT_RECEIVER_MANAGER_IMPL_H_
+
+#include "base/android/jni_android.h"
+#include "mojo/common/weak_binding_set.h"
+#include "services/android/intent_receiver.mojom.h"
+
+namespace mojo {
+namespace shell {
+
+class IntentReceiverManagerImpl
+ : public intent_receiver::IntentReceiverManager {
+ public:
+ void Bind(InterfaceRequest<intent_receiver::IntentReceiverManager> request);
+
+ private:
+ // Implementation of intent_receiver::IntentReceiverManager
+ void RegisterReceiver(intent_receiver::IntentReceiverPtr receiver,
+ const RegisterReceiverCallback& callback) override;
+
+ WeakBindingSet<intent_receiver::IntentReceiverManager> bindings_;
+};
+
+bool RegisterIntentReceiverRegistry(JNIEnv* env);
+
+} // namespace shell
+} // namespace mojo
+
+#endif // SHELL_ANDROID_INTENT_RECEIVER_MANAGER_IMPL_H_
« no previous file with comments | « shell/android/intent_receiver_manager_factory.cc ('k') | shell/android/intent_receiver_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698