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..fcdc3fc47621b5d73f6af3a7eff438b95433c09b |
| --- /dev/null |
| +++ b/shell/android/intent_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_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_receiver.mojom.h" |
| + |
| +namespace mojo { |
| +namespace shell { |
| + |
| +class IntentReceiverManagerImpl |
|
ppi
2015/04/08 11:10:10
could you also rename the file to match the class
qsr
2015/04/08 11:16:19
Done.
|
| + : 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_MANAGER_IMPL_H_ |