summaryrefslogtreecommitdiffstats
path: root/content/browser/mojo/service_registrar_android.h
blob: fdf62d4f742129c94f6901637be50a6a646d5707 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2014 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 CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_
#define CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_

#include <jni.h>

namespace content {

class ServiceRegistryAndroid;

// Registrar for mojo services in Java exposed by the browser. This calls into
// Java where the services are registered with the indicated registry.
class ServiceRegistrarAndroid {
 public:
  static bool Register(JNIEnv* env);
  static void RegisterProcessHostServices(ServiceRegistryAndroid* registry);
  static void RegisterFrameHostServices(ServiceRegistryAndroid* registry);
};

}  // namespace content

#endif  // CONTENT_BROWSER_MOJO_SERVICE_REGISTRAR_ANDROID_H_