| 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_SCOPED_NSAUTORELEASE_POOL_H_ | 5 #ifndef BASE_MAC_SCOPED_NSAUTORELEASE_POOL_H_ |
| 6 #define BASE_MAC_SCOPED_NSAUTORELEASE_POOL_H_ | 6 #define BASE_MAC_SCOPED_NSAUTORELEASE_POOL_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include "base/base_export.h" | 8 #include "base/base_export.h" |
| 10 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 11 | 10 |
| 12 #if defined(__OBJC__) | 11 #if defined(__OBJC__) |
| 13 @class NSAutoreleasePool; | 12 @class NSAutoreleasePool; |
| 14 #else // __OBJC__ | 13 #else // __OBJC__ |
| 15 class NSAutoreleasePool; | 14 class NSAutoreleasePool; |
| 16 #endif // __OBJC__ | 15 #endif // __OBJC__ |
| 17 | 16 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 37 NSAutoreleasePool* autorelease_pool_; | 36 NSAutoreleasePool* autorelease_pool_; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(ScopedNSAutoreleasePool); | 39 DISALLOW_COPY_AND_ASSIGN(ScopedNSAutoreleasePool); |
| 41 }; | 40 }; |
| 42 | 41 |
| 43 } // namespace mac | 42 } // namespace mac |
| 44 } // namespace base | 43 } // namespace base |
| 45 | 44 |
| 46 #endif // BASE_MAC_SCOPED_NSAUTORELEASE_POOL_H_ | 45 #endif // BASE_MAC_SCOPED_NSAUTORELEASE_POOL_H_ |
| OLD | NEW |