| 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_LAUNCHD_MAC_H_ | 5 #ifndef CHROME_COMMON_MAC_LAUNCHD_H_ |
| 6 #define CHROME_COMMON_LAUNCHD_MAC_H_ | 6 #define CHROME_COMMON_MAC_LAUNCHD_H_ |
| 7 #pragma once |
| 7 | 8 |
| 8 #include <CoreFoundation/CoreFoundation.h> | 9 #include <CoreFoundation/CoreFoundation.h> |
| 9 | 10 |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 12 | 13 |
| 13 class Launchd { | 14 class Launchd { |
| 14 public: | 15 public: |
| 15 enum Type { | 16 enum Type { |
| 16 Agent, // LaunchAgent | 17 Agent, // LaunchAgent |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 91 |
| 91 private: | 92 private: |
| 92 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed. | 93 // TODO(dmaclach): remove this once http://crbug.com/76925 is fixed. |
| 93 // Scaffolding for doing unittests with our singleton. | 94 // Scaffolding for doing unittests with our singleton. |
| 94 friend struct DefaultSingletonTraits<Launchd>; | 95 friend struct DefaultSingletonTraits<Launchd>; |
| 95 static Launchd* g_instance_; | 96 static Launchd* g_instance_; |
| 96 | 97 |
| 97 DISALLOW_COPY_AND_ASSIGN(Launchd); | 98 DISALLOW_COPY_AND_ASSIGN(Launchd); |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 #endif // CHROME_COMMON_LAUNCHD_MAC_H_ | 101 #endif // CHROME_COMMON_MAC_LAUNCHD_H_ |
| OLD | NEW |