OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIN_SRC_BROKER_SERVICES_H_ | 5 #ifndef SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
6 #define SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 6 #define SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 BrokerServicesBase(); | 42 BrokerServicesBase(); |
43 | 43 |
44 ~BrokerServicesBase(); | 44 ~BrokerServicesBase(); |
45 | 45 |
46 // BrokerServices interface. | 46 // BrokerServices interface. |
47 ResultCode Init() override; | 47 ResultCode Init() override; |
48 TargetPolicy* CreatePolicy() override; | 48 TargetPolicy* CreatePolicy() override; |
49 ResultCode SpawnTarget(const wchar_t* exe_path, | 49 ResultCode SpawnTarget(const wchar_t* exe_path, |
50 const wchar_t* command_line, | 50 const wchar_t* command_line, |
51 TargetPolicy* policy, | 51 TargetPolicy* policy, |
| 52 ResultCode* last_warning, |
52 PROCESS_INFORMATION* target) override; | 53 PROCESS_INFORMATION* target) override; |
53 ResultCode WaitForAllTargets() override; | 54 ResultCode WaitForAllTargets() override; |
54 | 55 |
55 // Checks if the supplied process ID matches one of the broker's active | 56 // Checks if the supplied process ID matches one of the broker's active |
56 // target processes | 57 // target processes |
57 // Returns: | 58 // Returns: |
58 // true if there is an active target process for this ID, otherwise false. | 59 // true if there is an active target process for this ID, otherwise false. |
59 bool IsActiveTarget(DWORD process_id); | 60 bool IsActiveTarget(DWORD process_id); |
60 | 61 |
61 private: | 62 private: |
(...skipping 28 matching lines...) Expand all Loading... |
90 // job. Consult |jobless_process_handles_| for handles of pocess without job. | 91 // job. Consult |jobless_process_handles_| for handles of pocess without job. |
91 std::set<DWORD> child_process_ids_; | 92 std::set<DWORD> child_process_ids_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 94 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace sandbox | 97 } // namespace sandbox |
97 | 98 |
98 | 99 |
99 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 100 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
OLD | NEW |