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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/nacl/common/nacl_delegate.h
diff --git a/components/nacl/common/nacl_delegate.h b/components/nacl/common/nacl_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f4386162c9e30d381f398a73e08276bb989d914
--- /dev/null
+++ b/components/nacl/common/nacl_delegate.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2013 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 COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_
+#define COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_
+
+#include "build/build_config.h"
+
+namespace base {
+class FilePath;
+}
+
+// This class encapsulates all the dependencies that nacl has on chrome
+class NaClDelegate {
+ public:
+ enum NaClSwitch {
+ kDisableBreakpad,
+ kDisableLogging,
+ kEnableDCHECK,
+ kEnableLogging,
+ kFullMemoryCrashReport,
+ kLoggingLevel,
+ kMemoryProfiling,
+ kNaClBrokerProcess,
+ kNaClLoaderProcess,
+ kNoErrorDialogs,
+ kNoSandbox,
+ kProcessType,
+ kSilentDumpOnDCHECK,
+ kTestNaClSandbox,
+#if defined(OS_MACOSX)
+ kEnableSandboxLogging,
+#endif
+ };
jam 2013/06/14 23:18:53 this is very hacky, please find a clean way of doi
+
+ enum NaClFilePath {
+ kFileNaClHelper,
+ kFileNaClHelperBootstrap,
+ };
+
+ NaClDelegate() {}
+ ~NaClDelegate() {}
+ const char* GetSwitch(NaClSwitch switch_name);
+
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+ bool GetFilePath(NaClFilePath path, base::FilePath* file_path);
+#endif
+};
+
+extern NaClDelegate* GetNaClDelegate();
+
+#endif // COMPONENTS_NACL_COMMON_NACL_DELEGATE_H_
« 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