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 { | |
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
| |
16 public: | |
17 void Bind(InterfaceRequest<intent::IntentManager> request); | |
18 | |
19 private: | |
20 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.
| |
21 const GetIntentCallback& callback) override; | |
22 | |
23 WeakBindingSet<intent::IntentManager> bindings_; | |
24 }; | |
25 | |
26 bool RegisterIntentReceiverRegistry(JNIEnv* env); | |
27 | |
28 } // namespace shell | |
29 } // namespace mojo | |
30 | |
31 #endif // SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ | |
OLD | NEW |