Chromium Code Reviews| Index: shell/android/intent_manager_impl.h |
| diff --git a/shell/android/intent_manager_impl.h b/shell/android/intent_manager_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4823a970cf4f9915b1b91e14ce71752943de5ced |
| --- /dev/null |
| +++ b/shell/android/intent_manager_impl.h |
| @@ -0,0 +1,31 @@ |
| +// 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_MANAGER_IMPL_H_ |
| +#define SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ |
| + |
| +#include "base/android/jni_android.h" |
| +#include "mojo/common/weak_binding_set.h" |
| +#include "services/android/intent.mojom.h" |
| + |
| +namespace mojo { |
| +namespace shell { |
| + |
| +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
|
| + public: |
| + void Bind(InterfaceRequest<intent::IntentManager> request); |
| + |
| + private: |
| + 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.
|
| + const GetIntentCallback& callback) override; |
| + |
| + WeakBindingSet<intent::IntentManager> bindings_; |
| +}; |
| + |
| +bool RegisterIntentReceiverRegistry(JNIEnv* env); |
| + |
| +} // namespace shell |
| +} // namespace mojo |
| + |
| +#endif // SHELL_ANDROID_INTENT_MANAGER_IMPL_H_ |