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_COMMON_MAC_LAUNCHD_H_ | 5 #ifndef CHROME_COMMON_MAC_LAUNCHD_H_ |
6 #define CHROME_COMMON_MAC_LAUNCHD_H_ | 6 #define CHROME_COMMON_MAC_LAUNCHD_H_ |
7 | 7 |
8 #include <CoreFoundation/CoreFoundation.h> | 8 #include <CoreFoundation/CoreFoundation.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 Launchd::SetInstance(NULL); | 81 Launchd::SetInstance(NULL); |
82 } | 82 } |
83 }; | 83 }; |
84 | 84 |
85 protected: | 85 protected: |
86 Launchd() { } | 86 Launchd() { } |
87 | 87 |
88 private: | 88 private: |
89 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed. | 89 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed. |
90 // Scaffolding for doing unittests with our singleton. | 90 // Scaffolding for doing unittests with our singleton. |
91 friend struct DefaultSingletonTraits<Launchd>; | 91 friend struct base::DefaultSingletonTraits<Launchd>; |
92 static Launchd* g_instance_; | 92 static Launchd* g_instance_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(Launchd); | 94 DISALLOW_COPY_AND_ASSIGN(Launchd); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_COMMON_MAC_LAUNCHD_H_ | 97 #endif // CHROME_COMMON_MAC_LAUNCHD_H_ |
OLD | NEW |