| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 ResolverThunk, the interface for classes that perform interceptions. | 5 // Defines ResolverThunk, the interface for classes that perform interceptions. |
| 6 // For more details see | 6 // 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 #include "base/basictypes.h" | 9 #include <stddef.h> |
| 10 |
| 11 #include "base/macros.h" |
| 10 #include "sandbox/win/src/nt_internals.h" | 12 #include "sandbox/win/src/nt_internals.h" |
| 11 | 13 |
| 12 #ifndef SANDBOX_SRC_RESOLVER_H__ | 14 #ifndef SANDBOX_SRC_RESOLVER_H__ |
| 13 #define SANDBOX_SRC_RESOLVER_H__ | 15 #define SANDBOX_SRC_RESOLVER_H__ |
| 14 | 16 |
| 15 namespace sandbox { | 17 namespace sandbox { |
| 16 | 18 |
| 17 // A resolver is the object in charge of performing the actual interception of | 19 // A resolver is the object in charge of performing the actual interception of |
| 18 // a function. There should be a concrete implementation of a resolver roughly | 20 // a function. There should be a concrete implementation of a resolver roughly |
| 19 // per type of interception. | 21 // per type of interception. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void* target_; | 98 void* target_; |
| 97 // Holds the resolved interception interceptor. | 99 // Holds the resolved interception interceptor. |
| 98 const void* interceptor_; | 100 const void* interceptor_; |
| 99 | 101 |
| 100 DISALLOW_COPY_AND_ASSIGN(ResolverThunk); | 102 DISALLOW_COPY_AND_ASSIGN(ResolverThunk); |
| 101 }; | 103 }; |
| 102 | 104 |
| 103 } // namespace sandbox | 105 } // namespace sandbox |
| 104 | 106 |
| 105 #endif // SANDBOX_SRC_RESOLVER_H__ | 107 #endif // SANDBOX_SRC_RESOLVER_H__ |
| OLD | NEW |