OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ |
6 #define CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ | 6 #define CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 class ServiceRegistryAndroid; | 12 class ServiceRegistry; |
13 | 13 |
14 // Registrar for mojo services in Java exposed by the browser. This calls into | 14 // Registrar for mojo services in Java exposed by the browser. This calls into |
15 // Java where the services are registered with the indicated registry. | 15 // Java where the services are registered with the indicated registry. |
16 class ServiceRegistrarAndroid { | 16 class ServiceRegistrarAndroid { |
17 public: | 17 public: |
18 static bool Register(JNIEnv* env); | 18 static bool Register(JNIEnv* env); |
19 static void RegisterProcessHostServices(ServiceRegistryAndroid* registry); | 19 static void RegisterProcessHostServices(ServiceRegistry* registry); |
20 static void RegisterFrameHostServices(ServiceRegistryAndroid* registry); | 20 static void RegisterFrameHostServices(ServiceRegistry* registry); |
21 }; | 21 }; |
22 | 22 |
23 } // namespace content | 23 } // namespace content |
24 | 24 |
25 #endif // CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ | 25 #endif // CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_ |
OLD | NEW |