| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // BrokerServices interface. | 47 // BrokerServices interface. |
| 48 ResultCode Init() override; | 48 ResultCode Init() override; |
| 49 TargetPolicy* CreatePolicy() override; | 49 TargetPolicy* CreatePolicy() override; |
| 50 ResultCode SpawnTarget(const wchar_t* exe_path, | 50 ResultCode SpawnTarget(const wchar_t* exe_path, |
| 51 const wchar_t* command_line, | 51 const wchar_t* command_line, |
| 52 TargetPolicy* policy, | 52 TargetPolicy* policy, |
| 53 PROCESS_INFORMATION* target) override; | 53 PROCESS_INFORMATION* target) override; |
| 54 ResultCode WaitForAllTargets() override; | 54 ResultCode WaitForAllTargets() override; |
| 55 ResultCode AddTargetPeer(HANDLE peer_process) override; | 55 ResultCode AddTargetPeer(HANDLE peer_process) override; |
| 56 ResultCode InstallAppContainer(const wchar_t* sid, | |
| 57 const wchar_t* name) override; | |
| 58 ResultCode UninstallAppContainer(const wchar_t* sid) override; | |
| 59 | 56 |
| 60 // Checks if the supplied process ID matches one of the broker's active | 57 // Checks if the supplied process ID matches one of the broker's active |
| 61 // target processes | 58 // target processes |
| 62 // Returns: | 59 // Returns: |
| 63 // true if there is an active target process for this ID, otherwise false. | 60 // true if there is an active target process for this ID, otherwise false. |
| 64 bool IsActiveTarget(DWORD process_id); | 61 bool IsActiveTarget(DWORD process_id); |
| 65 | 62 |
| 66 private: | 63 private: |
| 67 typedef std::list<JobTracker*> JobTrackerList; | 64 typedef std::list<JobTracker*> JobTrackerList; |
| 68 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap; | 65 typedef std::map<DWORD, PeerTracker*> PeerTrackerMap; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // job. Consult |jobless_process_handles_| for handles of pocess without job. | 100 // job. Consult |jobless_process_handles_| for handles of pocess without job. |
| 104 std::set<DWORD> child_process_ids_; | 101 std::set<DWORD> child_process_ids_; |
| 105 | 102 |
| 106 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 103 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
| 107 }; | 104 }; |
| 108 | 105 |
| 109 } // namespace sandbox | 106 } // namespace sandbox |
| 110 | 107 |
| 111 | 108 |
| 112 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 109 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
| OLD | NEW |