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

Side by Side Diff: sandbox/src/sandbox.h

Issue 17426: remove chrome dependencies from win sandboxing headers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Sandbox is a sandbox library for windows processes. Use when you want a 5 // Sandbox is a sandbox library for windows processes. Use when you want a
6 // 'privileged' process and a 'locked down process' to interact with. 6 // 'privileged' process and a 'locked down process' to interact with.
7 // The privileged process is called the broker and it is started by external 7 // The privileged process is called the broker and it is started by external
8 // means (such as the user starting it). The 'sandboxed' process is called the 8 // means (such as the user starting it). The 'sandboxed' process is called the
9 // target and it is started by the broker. There can be many target processes 9 // target and it is started by the broker. There can be many target processes
10 // started by a single broker process. This library provides facilities 10 // started by a single broker process. This library provides facilities
11 // for both the broker and the target. 11 // for both the broker and the target.
12 // 12 //
13 // The design rationale and relevant documents can be found at http://go/sbox. 13 // The design rationale and relevant documents can be found at http://go/sbox.
14 // 14 //
15 // Note: this header does not include the SandboxFactory definitions because 15 // Note: this header does not include the SandboxFactory definitions because
16 // there are cases where the Sandbox library is linked against the main .exe 16 // there are cases where the Sandbox library is linked against the main .exe
17 // while its API needs to be used in a DLL. 17 // while its API needs to be used in a DLL.
18 18
19 #ifndef SANDBOX_SRC_SANDBOX_H__ 19 #ifndef SANDBOX_SRC_SANDBOX_H__
20 #define SANDBOX_SRC_SANDBOX_H__ 20 #define SANDBOX_SRC_SANDBOX_H__
21 21
22 #include "build/build_config.h"
23
24 #if defined(OS_WIN)
25 #include <windows.h> 22 #include <windows.h>
26 #elif defined(OS_POSIX)
27 typedef struct PROCESS_INFORMATION;
28 #endif
29 23
30 #include "base/basictypes.h" 24 #include "base/basictypes.h"
31 #include "sandbox/src/sandbox_policy.h" 25 #include "sandbox/src/sandbox_policy.h"
32 #include "sandbox/src/sandbox_types.h" 26 #include "sandbox/src/sandbox_types.h"
33 27
34 // sandbox: Google User-Land Application Sandbox 28 // sandbox: Google User-Land Application Sandbox
35 namespace sandbox { 29 namespace sandbox {
36 30
37 class BrokerServices; 31 class BrokerServices;
38 class ProcessState; 32 class ProcessState;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // information about the current state of the process, such as whether 127 // information about the current state of the process, such as whether
134 // LowerToken has been called or not. 128 // LowerToken has been called or not.
135 virtual ProcessState* GetState() = 0; 129 virtual ProcessState* GetState() = 0;
136 }; 130 };
137 131
138 } // namespace sandbox 132 } // namespace sandbox
139 133
140 134
141 #endif // SANDBOX_SRC_SANDBOX_H__ 135 #endif // SANDBOX_SRC_SANDBOX_H__
142 136
OLDNEW
« chrome/common/sandbox_init_wrapper.h ('K') | « chrome/renderer/renderer_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698