| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_MACH_BROKER_H_ | 5 #ifndef CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
| 6 #define CHROME_BROWSER_MACH_BROKER_H_ | 6 #define CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include <mach/mach.h> | 12 #include <mach/mach.h> |
| 13 | 13 |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/process.h" | 15 #include "base/process.h" |
| 16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Mutex that guards |mach_map_|. | 102 // Mutex that guards |mach_map_|. |
| 103 mutable base::Lock lock_; | 103 mutable base::Lock lock_; |
| 104 | 104 |
| 105 friend class MachBrokerTest; | 105 friend class MachBrokerTest; |
| 106 friend class RegisterNotificationTask; | 106 friend class RegisterNotificationTask; |
| 107 // Needed in order to make the constructor private. | 107 // Needed in order to make the constructor private. |
| 108 friend struct DefaultSingletonTraits<MachBroker>; | 108 friend struct DefaultSingletonTraits<MachBroker>; |
| 109 DISALLOW_COPY_AND_ASSIGN(MachBroker); | 109 DISALLOW_COPY_AND_ASSIGN(MachBroker); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_MACH_BROKER_H_ | 112 #endif // CONTENT_BROWSER_MACH_BROKER_MAC_H_ |
| OLD | NEW |