| 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 BASE_MAC_SCOPED_CFTYPEREF_H_ | 5 #ifndef BASE_MAC_SCOPED_CFTYPEREF_H_ |
| 6 #define BASE_MAC_SCOPED_CFTYPEREF_H_ | 6 #define BASE_MAC_SCOPED_CFTYPEREF_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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 CFT release() WARN_UNUSED_RESULT { | 94 CFT release() WARN_UNUSED_RESULT { |
| 95 CFT temp = object_; | 95 CFT temp = object_; |
| 96 object_ = NULL; | 96 object_ = NULL; |
| 97 return temp; | 97 return temp; |
| 98 } | 98 } |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 CFT object_; | 101 CFT object_; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 // TODO(thakis): Remove this once all clients use base::ScopedCFTypeRef | |
| 105 // directly. | |
| 106 namespace mac { | |
| 107 using base::ScopedCFTypeRef; | |
| 108 } // namespace mac | |
| 109 | |
| 110 } // namespace base | 104 } // namespace base |
| 111 | 105 |
| 112 #endif // BASE_MAC_SCOPED_CFTYPEREF_H_ | 106 #endif // BASE_MAC_SCOPED_CFTYPEREF_H_ |
| OLD | NEW |