OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ | |
6 #define COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ | |
7 | |
8 #include "build/build_config.h" | |
9 | |
10 namespace base { | |
11 class FilePath; | |
12 } | |
13 | |
14 // This class encapsulates all the dependencies that nacl has on chrome | |
15 class NaClDelegate { | |
16 public: | |
17 enum NaClSwitch { | |
18 kDisableBreakpad, | |
19 kDisableLogging, | |
20 kEnableDCHECK, | |
21 kEnableLogging, | |
22 kFullMemoryCrashReport, | |
23 kLoggingLevel, | |
24 kMemoryProfiling, | |
25 kNaClBrokerProcess, | |
26 kNaClLoaderProcess, | |
27 kNoErrorDialogs, | |
28 kNoSandbox, | |
29 kProcessType, | |
30 kSilentDumpOnDCHECK, | |
31 kTestNaClSandbox, | |
32 #if defined(OS_MACOSX) | |
33 kEnableSandboxLogging, | |
34 #endif | |
35 }; | |
jam
2013/06/14 23:18:53
this is very hacky, please find a clean way of doi
| |
36 | |
37 enum NaClFilePath { | |
38 kFileNaClHelper, | |
39 kFileNaClHelperBootstrap, | |
40 }; | |
41 | |
42 NaClDelegate() {} | |
43 ~NaClDelegate() {} | |
44 const char* GetSwitch(NaClSwitch switch_name); | |
45 | |
46 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
47 bool GetFilePath(NaClFilePath path, base::FilePath* file_path); | |
48 #endif | |
49 }; | |
50 | |
51 extern NaClDelegate* GetNaClDelegate(); | |
52 | |
53 #endif // COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_ | |
OLD | NEW |