| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_SRC_SYNC_POLICY_H__ | 5 #ifndef SANDBOX_SRC_SYNC_POLICY_H__ |
| 6 #define SANDBOX_SRC_SYNC_POLICY_H__ | 6 #define SANDBOX_SRC_SYNC_POLICY_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "sandbox/src/crosscall_server.h" | 11 #include "sandbox/win/src/crosscall_server.h" |
| 12 #include "sandbox/src/nt_internals.h" | 12 #include "sandbox/win/src/nt_internals.h" |
| 13 #include "sandbox/src/policy_low_level.h" | 13 #include "sandbox/win/src/policy_low_level.h" |
| 14 #include "sandbox/src/sandbox_policy.h" | 14 #include "sandbox/win/src/sandbox_policy.h" |
| 15 | 15 |
| 16 namespace sandbox { | 16 namespace sandbox { |
| 17 | 17 |
| 18 enum EvalResult; | 18 enum EvalResult; |
| 19 | 19 |
| 20 // This class centralizes most of the knowledge related to sync policy | 20 // This class centralizes most of the knowledge related to sync policy |
| 21 class SyncPolicy { | 21 class SyncPolicy { |
| 22 public: | 22 public: |
| 23 // Creates the required low-level policy rules to evaluate a high-level | 23 // Creates the required low-level policy rules to evaluate a high-level |
| 24 // policy rule for sync calls, in particular open or create actions. | 24 // policy rule for sync calls, in particular open or create actions. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 const ClientInfo& client_info, | 42 const ClientInfo& client_info, |
| 43 const std::wstring &event_name, | 43 const std::wstring &event_name, |
| 44 uint32 desired_access, | 44 uint32 desired_access, |
| 45 uint32 inherit_handle, | 45 uint32 inherit_handle, |
| 46 HANDLE *handle); | 46 HANDLE *handle); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace sandbox | 49 } // namespace sandbox |
| 50 | 50 |
| 51 #endif // SANDBOX_SRC_SYNC_POLICY_H__ | 51 #endif // SANDBOX_SRC_SYNC_POLICY_H__ |
| OLD | NEW |