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

Side by Side Diff: sandbox/win/src/interception_internal.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/interception.h ('k') | sandbox/win/src/named_pipe_policy.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) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 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_INTERNAL_H_ 9 #ifndef SANDBOX_SRC_INTERCEPTION_INTERNAL_H_
10 #define SANDBOX_SRC_INTERCEPTION_INTERNAL_H_ 10 #define SANDBOX_SRC_INTERCEPTION_INTERNAL_H_
11 11
12 #include <stddef.h> 12 #include <stddef.h>
13 13
14 #include "sandbox/win/src/interceptors.h"
14 #include "sandbox/win/src/sandbox_types.h" 15 #include "sandbox/win/src/sandbox_types.h"
15 16
16 namespace sandbox { 17 namespace sandbox {
17 18
18 const int kMaxThunkDataBytes = 64; 19 const int kMaxThunkDataBytes = 64;
19 20
20 enum InterceptorId;
21
22 // The following structures contain variable size fields at the end, and will be 21 // The following structures contain variable size fields at the end, and will be
23 // used to transfer information between two processes. In order to guarantee 22 // used to transfer information between two processes. In order to guarantee
24 // our ability to follow the chain of structures, the alignment should be fixed, 23 // our ability to follow the chain of structures, the alignment should be fixed,
25 // hence this pragma. 24 // hence this pragma.
26 #pragma pack(push, 4) 25 #pragma pack(push, 4)
27 26
28 // Structures for the shared memory that contains patching information 27 // Structures for the shared memory that contains patching information
29 // for the InterceptionAgent. 28 // for the InterceptionAgent.
30 // A single interception: 29 // A single interception:
31 struct FunctionInfo { 30 struct FunctionInfo {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 int dummy; // Improve alignment. 68 int dummy; // Improve alignment.
70 #endif 69 #endif
71 ThunkData thunks[1]; 70 ThunkData thunks[1];
72 }; 71 };
73 72
74 #pragma pack(pop) 73 #pragma pack(pop)
75 74
76 } // namespace sandbox 75 } // namespace sandbox
77 76
78 #endif // SANDBOX_SRC_INTERCEPTION_INTERNAL_H_ 77 #endif // SANDBOX_SRC_INTERCEPTION_INTERNAL_H_
OLDNEW
« no previous file with comments | « sandbox/win/src/interception.h ('k') | sandbox/win/src/named_pipe_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698