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_ |