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 #ifndef SANDBOX_IMPL_H__ | 5 #ifndef SANDBOX_IMPL_H__ |
6 #define SANDBOX_IMPL_H__ | 6 #define SANDBOX_IMPL_H__ |
7 | 7 |
8 #include <asm/ldt.h> | 8 #include <asm/ldt.h> |
9 #include <errno.h> | 9 #include <errno.h> |
10 #include <fcntl.h> | 10 #include <fcntl.h> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include <sys/stat.h> | 27 #include <sys/stat.h> |
28 #include <sys/time.h> | 28 #include <sys/time.h> |
29 #include <sys/types.h> | 29 #include <sys/types.h> |
30 #include <time.h> | 30 #include <time.h> |
31 #include <unistd.h> | 31 #include <unistd.h> |
32 | 32 |
33 #define NOINTR_SYS(x) \ | 33 #define NOINTR_SYS(x) \ |
34 ({ typeof(x) i__; while ((i__ = (x)) < 0 && sys.my_errno == EINTR); i__;}) | 34 ({ typeof(x) i__; while ((i__ = (x)) < 0 && sys.my_errno == EINTR); i__;}) |
35 | 35 |
36 #ifdef __cplusplus | 36 #ifdef __cplusplus |
37 #include <iostream> | |
38 #include <map> | 37 #include <map> |
39 #include <vector> | 38 #include <vector> |
40 #include "sandbox.h" | 39 #include "sandbox.h" |
41 #include "securemem.h" | 40 #include "securemem.h" |
42 #include "tls.h" | 41 #include "tls.h" |
43 | 42 |
44 namespace playground { | 43 namespace playground { |
45 | 44 |
46 class Sandbox { | 45 class Sandbox { |
47 // TODO(markus): restrict access to our private file handles | 46 // TODO(markus): restrict access to our private file handles |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 static ProtectedMap protectedMap_; | 695 static ProtectedMap protectedMap_; |
697 static std::vector<SecureMem::Args*> secureMemPool_; | 696 static std::vector<SecureMem::Args*> secureMemPool_; |
698 }; | 697 }; |
699 | 698 |
700 } // namespace | 699 } // namespace |
701 | 700 |
702 using playground::Sandbox; | 701 using playground::Sandbox; |
703 #endif // __cplusplus | 702 #endif // __cplusplus |
704 | 703 |
705 #endif // SANDBOX_IMPL_H__ | 704 #endif // SANDBOX_IMPL_H__ |
OLD | NEW |