summaryrefslogtreecommitdiffstats
path: root/ppapi/native_client/src/trusted/plugin/nacl_entry_points.h
blob: b924066e941079e8dd9ca1e8f7ed42fdec62ac2a (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
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (c) 2012 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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_
#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_

#include <stddef.h>

#include <map>
#include <string>

#include "native_client/src/shared/imc/nacl_imc_c.h"
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/private/ppb_instance_private.h"

typedef PP_ExternalPluginResult (*LaunchNaClProcessFunc)(
    PP_Instance instance,
    const char* alleged_url,
    PP_Bool uses_irt,
    PP_Bool uses_ppapi,
    PP_Bool enable_ppapi_dev,
    PP_Bool enable_dyncode_syscalls,
    PP_Bool enable_exception_handling,
    PP_Bool enable_crash_throttling,
    NaClHandle* result_socket,
    struct PP_Var* error_message,
    PP_CompletionCallback callback);


extern LaunchNaClProcessFunc launch_nacl_process;

#endif  // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_ENTRY_POINTS_H_