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

Unified Diff: content/public/common/sandboxed_process_launcher_delegate.h

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep rebasing keep rebasing... Created 5 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: content/public/common/sandboxed_process_launcher_delegate.h
diff --git a/content/public/common/sandboxed_process_launcher_delegate.h b/content/public/common/sandboxed_process_launcher_delegate.h
index 134fc0f58efe42d2d61ae58367fc716129be53c2..05acf5a6eefbed8baabbc24af41e445ae5a15222 100644
--- a/content/public/common/sandboxed_process_launcher_delegate.h
+++ b/content/public/common/sandboxed_process_launcher_delegate.h
@@ -9,10 +9,7 @@
#include "base/files/scoped_file.h"
#include "base/process/process.h"
#include "content/common/content_export.h"
-
-#if defined(OS_MACOSX)
-#include "content/public/common/sandbox_type_mac.h"
-#endif
+#include "content/public/common/sandbox_type.h"
namespace base {
class FilePath;
@@ -65,14 +62,11 @@ class CONTENT_EXPORT SandboxedProcessLauncherDelegate {
// Return the file descriptor for the IPC channel.
virtual base::ScopedFD TakeIpcFd() = 0;
-
-#if defined(OS_MACOSX)
- // Gets the Mac SandboxType to enforce on the process. Return
- // SANDBOX_TYPE_INVALID for no sandbox policy.
- virtual SandboxType GetSandboxType();
#endif
-#endif
+ // Returns the SandboxType to enforce on the process, or SANDBOX_TYPE_INVALID
+ // for no sandbox policy.
+ virtual SandboxType GetSandboxType();
};
} // namespace content
« no previous file with comments | « content/public/common/sandbox_type_mac.h ('k') | content/public/common/sandboxed_process_launcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698