Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: shell/android/intent_manager_impl.h

Issue 1061313003: Introduce intent manager. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698