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 CONTENT_BROWSER_MACH_BROKER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
6 #define CONTENT_BROWSER_MACH_BROKER_MAC_H_ | 6 #define CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
7 #pragma once | |
8 | 7 |
9 #include <map> | 8 #include <map> |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include <mach/mach.h> | 11 #include <mach/mach.h> |
13 | 12 |
14 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
15 #include "base/process.h" | 14 #include "base/process.h" |
16 #include "base/process_util.h" | 15 #include "base/process_util.h" |
17 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 typedef std::map<base::ProcessHandle, MachInfo> MachMap; | 105 typedef std::map<base::ProcessHandle, MachInfo> MachMap; |
107 MachMap mach_map_; | 106 MachMap mach_map_; |
108 | 107 |
109 // Mutex that guards |mach_map_|. | 108 // Mutex that guards |mach_map_|. |
110 mutable base::Lock lock_; | 109 mutable base::Lock lock_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(MachBroker); | 111 DISALLOW_COPY_AND_ASSIGN(MachBroker); |
113 }; | 112 }; |
114 | 113 |
115 #endif // CONTENT_BROWSER_MACH_BROKER_MAC_H_ | 114 #endif // CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
OLD | NEW |