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

Side by Side Diff: base/ref_counted.h

Issue 17464: Changing access to scoped_refptr member variables from private to protected.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/ref_counted_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_REF_COUNTED_H_ 5 #ifndef BASE_REF_COUNTED_H_
6 #define BASE_REF_COUNTED_H_ 6 #define BASE_REF_COUNTED_H_
7 7
8 #include "base/atomic_ref_count.h" 8 #include "base/atomic_ref_count.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 void swap(T** pp) { 215 void swap(T** pp) {
216 T* p = ptr_; 216 T* p = ptr_;
217 ptr_ = *pp; 217 ptr_ = *pp;
218 *pp = p; 218 *pp = p;
219 } 219 }
220 220
221 void swap(scoped_refptr<T>& r) { 221 void swap(scoped_refptr<T>& r) {
222 swap(&r.ptr_); 222 swap(&r.ptr_);
223 } 223 }
224 224
225 private: 225 protected:
226 T* ptr_; 226 T* ptr_;
227 }; 227 };
228 228
229 #endif // BASE_REF_COUNTED_H_ 229 #endif // BASE_REF_COUNTED_H_
OLDNEW
« no previous file with comments | « no previous file | base/ref_counted_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698