Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: components/nacl/common/nacl_delegate.h

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android build fix Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_debug_exception_handler_win.cc ('k') | components/nacl/common/nacl_fork_delegate_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698