1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20

content / public / android / java / src / org / chromium / content_public / app / ChildProcessServiceFactory.java [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.content_public.app;

import android.app.Service;
import android.content.Context;

import org.chromium.base.process_launcher.ChildProcessService;
import org.chromium.content.app.ContentChildProcessServiceDelegate;

/** Factory to create a service class that can call through to the content implementation. */
public class ChildProcessServiceFactory {
    public static ChildProcessService create(Service service, Context context) {
        return new ChildProcessService(new ContentChildProcessServiceDelegate(), service, context);
    }

    private ChildProcessServiceFactory() {}
}