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