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

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

Issue 1116653002: Introduce authentication service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
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 shell { 12 namespace shell {
13 13
14 class IntentReceiverManagerImpl 14 class IntentReceiverManagerImpl
15 : public intent_receiver::IntentReceiverManager { 15 : public intent_receiver::IntentReceiverManager {
16 public: 16 public:
17 void Bind( 17 void Bind(
18 mojo::InterfaceRequest<intent_receiver::IntentReceiverManager> request); 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 RegisterIntentReceiver(
23 const RegisterReceiverCallback& callback) override; 23 intent_receiver::IntentReceiverPtr receiver,
24 const RegisterIntentReceiverCallback& callback) override;
25 void RegisterActivityResult(
26 intent_receiver::IntentReceiverPtr receiver,
27 const RegisterActivityResultCallback& callback) override;
24 28
25 mojo::WeakBindingSet<intent_receiver::IntentReceiverManager> bindings_; 29 mojo::WeakBindingSet<intent_receiver::IntentReceiverManager> bindings_;
26 }; 30 };
27 31
28 bool RegisterIntentReceiverRegistry(JNIEnv* env); 32 bool RegisterIntentReceiverRegistry(JNIEnv* env);
29 33
30 } // namespace shell 34 } // namespace shell
31 35
32 #endif // SHELL_ANDROID_INTENT_RECEIVER_MANAGER_IMPL_H_ 36 #endif // SHELL_ANDROID_INTENT_RECEIVER_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698