| OLD | NEW |
| 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> |
| 13 |
| 12 #include <list> | 14 #include <list> |
| 13 #include <string> | 15 #include <string> |
| 14 | 16 |
| 15 #include "base/basictypes.h" | |
| 16 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
| 18 #include "base/macros.h" |
| 17 #include "base/strings/string16.h" | 19 #include "base/strings/string16.h" |
| 18 #include "sandbox/win/src/sandbox_types.h" | 20 #include "sandbox/win/src/sandbox_types.h" |
| 19 | 21 |
| 20 namespace sandbox { | 22 namespace sandbox { |
| 21 | 23 |
| 22 class TargetProcess; | 24 class TargetProcess; |
| 23 enum InterceptorId; | 25 enum InterceptorId; |
| 24 | 26 |
| 25 // Internal structures used for communication between the broker and the target. | 27 // Internal structures used for communication between the broker and the target. |
| 26 struct DllPatchInfo; | 28 struct DllPatchInfo; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // |TargetServices::InitCalled()| returns true, because it is only then that | 277 // |TargetServices::InitCalled()| returns true, because it is only then that |
| 276 // we are guaranteed that our IAT has been initialized. | 278 // we are guaranteed that our IAT has been initialized. |
| 277 #define INTERCEPT_EAT(manager, dll, function, id, num_params) \ | 279 #define INTERCEPT_EAT(manager, dll, function, id, num_params) \ |
| 278 manager->AddToPatchedFunctions(dll, #function, sandbox::INTERCEPTION_EAT, \ | 280 manager->AddToPatchedFunctions(dll, #function, sandbox::INTERCEPTION_EAT, \ |
| 279 MAKE_SERVICE_NAME(function), id) | 281 MAKE_SERVICE_NAME(function), id) |
| 280 #endif // SANDBOX_EXPORTS | 282 #endif // SANDBOX_EXPORTS |
| 281 | 283 |
| 282 } // namespace sandbox | 284 } // namespace sandbox |
| 283 | 285 |
| 284 #endif // SANDBOX_SRC_INTERCEPTION_H_ | 286 #endif // SANDBOX_SRC_INTERCEPTION_H_ |
| OLD | NEW |