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