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 <memory> | 10 #include <memory> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "sandbox/win/src/win_utils.h" | 22 #include "sandbox/win/src/win_utils.h" |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 struct JobTracker; | 26 struct JobTracker; |
27 | 27 |
28 } // namespace | 28 } // namespace |
29 | 29 |
30 namespace sandbox { | 30 namespace sandbox { |
31 | 31 |
32 class PolicyBase; | |
33 | |
34 // BrokerServicesBase --------------------------------------------------------- | 32 // BrokerServicesBase --------------------------------------------------------- |
35 // Broker implementation version 0 | 33 // Broker implementation version 0 |
36 // | 34 // |
37 // This is an implementation of the interface BrokerServices and | 35 // This is an implementation of the interface BrokerServices and |
38 // of the associated TargetProcess interface. In this implementation | 36 // of the associated TargetProcess interface. In this implementation |
39 // TargetProcess is a friend of BrokerServices where the later manages a | 37 // TargetProcess is a friend of BrokerServices where the later manages a |
40 // collection of the former. | 38 // collection of the former. |
41 class BrokerServicesBase final : public BrokerServices, | 39 class BrokerServicesBase final : public BrokerServices, |
42 public SingletonBase<BrokerServicesBase> { | 40 public SingletonBase<BrokerServicesBase> { |
43 public: | 41 public: |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // jobs. | 91 // jobs. |
94 std::set<DWORD> child_process_ids_; | 92 std::set<DWORD> child_process_ids_; |
95 | 93 |
96 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); | 94 DISALLOW_COPY_AND_ASSIGN(BrokerServicesBase); |
97 }; | 95 }; |
98 | 96 |
99 } // namespace sandbox | 97 } // namespace sandbox |
100 | 98 |
101 | 99 |
102 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ | 100 #endif // SANDBOX_WIN_SRC_BROKER_SERVICES_H_ |
OLD | NEW |