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

Unified Diff: content/common/sandbox_init_mac.h

Issue 8589001: Load mac sandbox definitions from resources instead of the bundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 1 month 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
« no previous file with comments | « content/app/content_main.cc ('k') | content/common/sandbox_init_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_init_mac.h
diff --git a/content/public/common/sandbox_init.h b/content/common/sandbox_init_mac.h
similarity index 50%
copy from content/public/common/sandbox_init.h
copy to content/common/sandbox_init_mac.h
index 3415e0d4abb8e2e9ba33986add4141e7dc1f07e9..08512b55a3f1cdeedc5a7ece14eaf52cff368073 100644
--- a/content/public/common/sandbox_init.h
+++ b/content/common/sandbox_init_mac.h
@@ -2,35 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
-#define CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
+#ifndef CONTENT_COMMON_SANDBOX_INIT_MAC_H_
+#define CONTENT_COMMON_SANDBOX_INIT_MAC_H_
#pragma once
-#include "build/build_config.h"
-#include "content/common/content_export.h"
-
-#if defined(OS_WIN)
-namespace sandbox {
-struct SandboxInterfaceInfo;
-}
-#endif
-
namespace content {
-// Initialize the sandbox for renderer, gpu, utility, worker, nacl, and plug-in
+// Initialize the sandbox for renderer, gpu, utility, worker, and plug-in
// processes, depending on the command line flags. Although The browser process
// is not sandboxed, this also needs to be called because it will initialize
// the broker code.
// Returns true if the sandbox was initialized succesfully, false if an error
// occurred. If process_type isn't one that needs sandboxing true is always
// returned.
-#if defined(OS_WIN)
-CONTENT_EXPORT bool InitializeSandbox(
- sandbox::SandboxInterfaceInfo* sandbox_info);
-#elif defined(OS_MACOSX)
-CONTENT_EXPORT bool InitializeSandbox();
-#endif
+bool InitializeSandbox();
} // namespace content
-#endif // CONTENT_PUBLIC_COMMON_SANDBOX_INIT_H_
+#endif // CONTENT_COMMON_SANDBOX_INIT_MAC_H_
« no previous file with comments | « content/app/content_main.cc ('k') | content/common/sandbox_init_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698