| 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 BASE_MAC_OBJC_PROPERTY_RELEASER_H_ | 5 #ifndef BASE_MAC_OBJC_PROPERTY_RELEASER_H_ |
| 6 #define BASE_MAC_OBJC_PROPERTY_RELEASER_H_ | 6 #define BASE_MAC_OBJC_PROPERTY_RELEASER_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 10 | 9 |
| 11 #include "base/base_export.h" | 10 #include "base/base_export.h" |
| 12 | 11 |
| 13 namespace base { | 12 namespace base { |
| 14 namespace mac { | 13 namespace mac { |
| 15 | 14 |
| 16 // ObjCPropertyReleaser is a C++ class that can automatically release | 15 // ObjCPropertyReleaser is a C++ class that can automatically release |
| 17 // synthesized Objective-C properties marked "retain" or "copy". The expected | 16 // synthesized Objective-C properties marked "retain" or "copy". The expected |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 118 |
| 120 private: | 119 private: |
| 121 id object_; | 120 id object_; |
| 122 Class class_; | 121 Class class_; |
| 123 }; | 122 }; |
| 124 | 123 |
| 125 } // namespace mac | 124 } // namespace mac |
| 126 } // namespace base | 125 } // namespace base |
| 127 | 126 |
| 128 #endif // BASE_MAC_OBJC_PROPERTY_RELEASER_H_ | 127 #endif // BASE_MAC_OBJC_PROPERTY_RELEASER_H_ |
| OLD | NEW |