OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ |
| 6 #define SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ |
| 7 |
| 8 #include "base/android/jni_android.h" |
| 9 #include "mojo/common/weak_binding_set.h" |
| 10 #include "services/android/intent.mojom.h" |
| 11 |
| 12 namespace mojo { |
| 13 namespace shell { |
| 14 |
| 15 class IntentManagerImpl : public intent::IntentManager { |
| 16 public: |
| 17 void Bind(InterfaceRequest<intent::IntentManager> request); |
| 18 |
| 19 private: |
| 20 // Implementation of intent::IntentManager |
| 21 void RegisterReceiver(intent::IntentReceiverPtr receiver, |
| 22 const RegisterReceiverCallback& callback) override; |
| 23 |
| 24 WeakBindingSet<intent::IntentManager> bindings_; |
| 25 }; |
| 26 |
| 27 bool RegisterIntentReceiverRegistry(JNIEnv* env); |
| 28 |
| 29 } // namespace shell |
| 30 } // namespace mojo |
| 31 |
| 32 #endif // SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ |
OLD | NEW |