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

Side by Side Diff: base/threading/non_thread_safe_impl.cc

Issue 10332269: RefCounted types should not have public destructors, base/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 8 years, 5 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 | « base/threading/non_thread_safe_impl.h ('k') | base/threading/platform_thread.h » ('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) 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 #include "base/threading/non_thread_safe_impl.h" 5 #include "base/threading/non_thread_safe_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 bool NonThreadSafeImpl::CalledOnValidThread() const {
12 return thread_checker_.CalledOnValidThread();
13 }
14
11 NonThreadSafeImpl::~NonThreadSafeImpl() { 15 NonThreadSafeImpl::~NonThreadSafeImpl() {
12 DCHECK(CalledOnValidThread()); 16 DCHECK(CalledOnValidThread());
13 } 17 }
14 18
15 bool NonThreadSafeImpl::CalledOnValidThread() const {
16 return thread_checker_.CalledOnValidThread();
17 }
18
19 void NonThreadSafeImpl::DetachFromThread() { 19 void NonThreadSafeImpl::DetachFromThread() {
20 thread_checker_.DetachFromThread(); 20 thread_checker_.DetachFromThread();
21 } 21 }
22 22
23 } // namespace base 23 } // namespace base
OLDNEW
« no previous file with comments | « base/threading/non_thread_safe_impl.h ('k') | base/threading/platform_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698