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

Side by Side Diff: sandbox/win/src/broker_services.h

Issue 2453063003: Revert "Fix sandbox::PolicyBase leak" (Closed)
Patch Set: Created 4 years, 1 month 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/sandbox_poc/main_ui_window.cc ('k') | sandbox/win/src/broker_services.cc » ('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) 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 27 matching lines...) Expand all
38 // collection of the former. 38 // collection of the former.
39 class BrokerServicesBase final : public BrokerServices, 39 class BrokerServicesBase final : public BrokerServices,
40 public SingletonBase<BrokerServicesBase> { 40 public SingletonBase<BrokerServicesBase> {
41 public: 41 public:
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 scoped_refptr<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 scoped_refptr<TargetPolicy> policy, 51 TargetPolicy* policy,
52 ResultCode* last_warning, 52 ResultCode* last_warning,
53 DWORD* last_error, 53 DWORD* last_error,
54 PROCESS_INFORMATION* target) override; 54 PROCESS_INFORMATION* target) override;
55 ResultCode WaitForAllTargets() override; 55 ResultCode WaitForAllTargets() override;
56 56
57 // 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
58 // target processes 58 // target processes
59 // Returns: 59 // Returns:
60 // 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.
61 bool IsActiveTarget(DWORD process_id); 61 bool IsActiveTarget(DWORD process_id);
(...skipping 30 matching lines...) Expand all
92 // job. Consult |jobless_process_handles_| for handles of pocess without job. 92 // job. Consult |jobless_process_handles_| for handles of pocess without job.
93 std::set<DWORD> child_process_ids_; 93 std::set<DWORD> child_process_ids_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); 95 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase);
96 }; 96 };
97 97
98 } // namespace sandbox 98 } // namespace sandbox
99 99
100 100
101 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ 101 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_
OLDNEW
« no previous file with comments | « sandbox/win/sandbox_poc/main_ui_window.cc ('k') | sandbox/win/src/broker_services.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698