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/macros.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 | 12 |
13 class Launchd { | 13 class Launchd { |
14 public: | 14 public: |
15 enum Type { | 15 enum Type { |
16 Agent, // LaunchAgent | 16 Agent, // LaunchAgent |
17 Daemon // LaunchDaemon | 17 Daemon // LaunchDaemon |
18 }; | 18 }; |
19 | 19 |
20 // Domains map to NSSearchPathDomainMask so Foundation does not need to be | 20 // Domains map to NSSearchPathDomainMask so Foundation does not need to be |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 base::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 |