Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: base/mac/scoped_nsobject.h

Issue 17500005: Move scoped_nsobject from base/memory to base/mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/mac/scoped_nsobject.h
diff --git a/base/memory/scoped_nsobject.h b/base/mac/scoped_nsobject.h
similarity index 96%
copy from base/memory/scoped_nsobject.h
copy to base/mac/scoped_nsobject.h
index a5b6dbf86560672218c1f1ab8b6a217ed4f75909..8d7bd4a27bd37c2844704e8beb2f0ef3bb849469 100644
--- a/base/memory/scoped_nsobject.h
+++ b/base/mac/scoped_nsobject.h
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef BASE_MEMORY_SCOPED_NSOBJECT_H_
-#define BASE_MEMORY_SCOPED_NSOBJECT_H_
+#ifndef BASE_MAC_SCOPED_NSOBJECT_H_
+#define BASE_MAC_SCOPED_NSOBJECT_H_
#import <Foundation/Foundation.h>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+namespace base {
+
// scoped_nsobject<> is patterned after scoped_ptr<>, but maintains ownership
// of an NSObject subclass object. Style deviations here are solely for
// compatibility with scoped_ptr<>'s interface, with which everyone is already
@@ -148,4 +150,7 @@ class scoped_nsobject<NSAutoreleasePool> {
explicit scoped_nsobject(NSAutoreleasePool* object = nil);
DISALLOW_COPY_AND_ASSIGN(scoped_nsobject);
};
-#endif // BASE_MEMORY_SCOPED_NSOBJECT_H_
+
+} // namespace base
+
+#endif // BASE_MAC_SCOPED_NSOBJECT_H_

Powered by Google App Engine
This is Rietveld 408576698