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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 struct JobTracker; | 24 struct JobTracker; |
25 struct PeerTracker; | 25 struct PeerTracker; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 namespace sandbox { | 29 namespace sandbox { |
30 | 30 |
31 class PolicyBase; | |
32 | |
33 // BrokerServicesBase --------------------------------------------------------- | 31 // BrokerServicesBase --------------------------------------------------------- |
34 // Broker implementation version 0 | 32 // Broker implementation version 0 |
35 // | 33 // |
36 // This is an implementation of the interface BrokerServices and | 34 // This is an implementation of the interface BrokerServices and |
37 // of the associated TargetProcess interface. In this implementation | 35 // of the associated TargetProcess interface. In this implementation |
38 // TargetProcess is a friend of BrokerServices where the later manages a | 36 // TargetProcess is a friend of BrokerServices where the later manages a |
39 // collection of the former. | 37 // collection of the former. |
40 class BrokerServicesBase final : public BrokerServices, | 38 class BrokerServicesBase final : public BrokerServices, |
41 public SingletonBase<BrokerServicesBase> { | 39 public SingletonBase<BrokerServicesBase> { |
42 public: | 40 public: |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // job. Consult |jobless_process_handles_| for handles of pocess without job. | 101 // job. Consult |jobless_process_handles_| for handles of pocess without job. |
104 std::set<DWORD> child_process_ids_; | 102 std::set<DWORD> child_process_ids_; |
105 | 103 |
106 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 104 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
107 }; | 105 }; |
108 | 106 |
109 } // namespace sandbox | 107 } // namespace sandbox |
110 | 108 |
111 | 109 |
112 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 110 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
OLD | NEW |