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

Unified Diff: components/nacl/common/nacl_paths.h

Issue 16881004: Move chrome/nacl to components/nacl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make ios happy 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_paths.h
diff --git a/components/nacl/common/nacl_paths.h b/components/nacl/common/nacl_paths.h
new file mode 100644
index 0000000000000000000000000000000000000000..6df6cc6649f365d137453da42a5d996846a7a38d
--- /dev/null
+++ b/components/nacl/common/nacl_paths.h
@@ -0,0 +1,31 @@
+// 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_PATHS_H__
Mark Seaborn 2013/06/21 00:00:47 Nit: Should use "_" not "__" (wunderbars are reser
+#define COMPONENTS_NACL_COMMON_NACL_PATHS_H__
+
+#include "build/build_config.h"
+
+// This file declares path keys for the chrome module. These can be used with
+// the PathService to access various special directories and files.
+
+namespace nacl {
+
+enum {
+ PATH_START = 9000,
Mark Seaborn 2013/06/21 00:00:47 I don't know where this magic number comes from.
+
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+ FILE_NACL_HELPER = PATH_START, // Full path to Linux nacl_helper executable.
+ FILE_NACL_HELPER_BOOTSTRAP, // ... and nacl_helper_bootstrap executable.
+#endif
+
+ PATH_END
+};
+
+// Call once to register the provider for the path keys defined above.
+void RegisterPathProvider();
+
+} // namespace nacl
+
+#endif // COMPONENTS_NACL_COMMON_NACL_PATHS_H__

Powered by Google App Engine
This is Rietveld 408576698