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

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

Issue 2829853010: Remove some illegal enum forward declarations (Closed)
Patch Set: Add back *one* forward declaration Created 3 years, 8 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
« no previous file with comments | « sandbox/win/src/filesystem_policy.h ('k') | sandbox/win/src/interception_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Defines InterceptionManager, the class in charge of setting up interceptions 5 // Defines InterceptionManager, the class in charge of setting up interceptions
6 // for the sandboxed process. For more details see 6 // for the sandboxed process. For more details see
7 // http://dev.chromium.org/developers/design-documents/sandbox . 7 // http://dev.chromium.org/developers/design-documents/sandbox .
8 8
9 #ifndef SANDBOX_SRC_INTERCEPTION_H_ 9 #ifndef SANDBOX_SRC_INTERCEPTION_H_
10 #define SANDBOX_SRC_INTERCEPTION_H_ 10 #define SANDBOX_SRC_INTERCEPTION_H_
11 11
12 #include <stddef.h> 12 #include <stddef.h>
13 13
14 #include <list> 14 #include <list>
15 #include <string> 15 #include <string>
16 16
17 #include "base/gtest_prod_util.h" 17 #include "base/gtest_prod_util.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/strings/string16.h" 19 #include "base/strings/string16.h"
20 #include "sandbox/win/src/interceptors.h"
20 #include "sandbox/win/src/sandbox_types.h" 21 #include "sandbox/win/src/sandbox_types.h"
21 22
22 namespace sandbox { 23 namespace sandbox {
23 24
24 class TargetProcess; 25 class TargetProcess;
25 enum InterceptorId;
26 26
27 // Internal structures used for communication between the broker and the target. 27 // Internal structures used for communication between the broker and the target.
28 struct DllPatchInfo; 28 struct DllPatchInfo;
29 struct DllInterceptionData; 29 struct DllInterceptionData;
30 30
31 // The InterceptionManager executes on the parent application, and it is in 31 // The InterceptionManager executes on the parent application, and it is in
32 // charge of setting up the desired interceptions, and placing the Interception 32 // charge of setting up the desired interceptions, and placing the Interception
33 // Agent into the child application. 33 // Agent into the child application.
34 // 34 //
35 // The exposed API consists of two methods: AddToPatchedFunctions to set up a 35 // The exposed API consists of two methods: AddToPatchedFunctions to set up a
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // |TargetServices::InitCalled()| returns true, because it is only then that 279 // |TargetServices::InitCalled()| returns true, because it is only then that
280 // we are guaranteed that our IAT has been initialized. 280 // we are guaranteed that our IAT has been initialized.
281 #define INTERCEPT_EAT(manager, dll, function, id, num_params) \ 281 #define INTERCEPT_EAT(manager, dll, function, id, num_params) \
282 manager->AddToPatchedFunctions(dll, #function, sandbox::INTERCEPTION_EAT, \ 282 manager->AddToPatchedFunctions(dll, #function, sandbox::INTERCEPTION_EAT, \
283 MAKE_SERVICE_NAME(function), id) 283 MAKE_SERVICE_NAME(function), id)
284 #endif // SANDBOX_EXPORTS 284 #endif // SANDBOX_EXPORTS
285 285
286 } // namespace sandbox 286 } // namespace sandbox
287 287
288 #endif // SANDBOX_SRC_INTERCEPTION_H_ 288 #endif // SANDBOX_SRC_INTERCEPTION_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/filesystem_policy.h ('k') | sandbox/win/src/interception_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698