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

Side by Side Diff: cc/base/thread_impl.h

Issue 17362002: cc: Remove FakeThread, use SingleThreadTaskRunner in scheduling classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-fakethread: rebase 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/base/thread.h ('k') | cc/base/thread_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_BASE_THREAD_IMPL_H_ 5 #ifndef CC_BASE_THREAD_IMPL_H_
6 #define CC_BASE_THREAD_IMPL_H_ 6 #define CC_BASE_THREAD_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 11 matching lines...) Expand all
22 // Creates a Thread wrapping a non-current thread. 22 // Creates a Thread wrapping a non-current thread.
23 static scoped_ptr<cc::Thread> CreateForDifferentThread( 23 static scoped_ptr<cc::Thread> CreateForDifferentThread(
24 scoped_refptr<base::MessageLoopProxy> thread); 24 scoped_refptr<base::MessageLoopProxy> thread);
25 25
26 virtual ~ThreadImpl(); 26 virtual ~ThreadImpl();
27 27
28 virtual void PostTask(base::Closure cb) OVERRIDE; 28 virtual void PostTask(base::Closure cb) OVERRIDE;
29 virtual void PostDelayedTask(base::Closure cb, base::TimeDelta delay) 29 virtual void PostDelayedTask(base::Closure cb, base::TimeDelta delay)
30 OVERRIDE; 30 OVERRIDE;
31 virtual bool BelongsToCurrentThread() const OVERRIDE; 31 virtual bool BelongsToCurrentThread() const OVERRIDE;
32 virtual base::SingleThreadTaskRunner* TaskRunner() OVERRIDE;
32 33
33 private: 34 private:
34 explicit ThreadImpl(scoped_refptr<base::MessageLoopProxy> thread); 35 explicit ThreadImpl(scoped_refptr<base::MessageLoopProxy> thread);
35 36
36 scoped_refptr<base::MessageLoopProxy> thread_; 37 scoped_refptr<base::MessageLoopProxy> thread_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(ThreadImpl); 39 DISALLOW_COPY_AND_ASSIGN(ThreadImpl);
39 }; 40 };
40 41
41 } // namespace cc 42 } // namespace cc
42 43
43 #endif // CC_BASE_THREAD_IMPL_H_ 44 #endif // CC_BASE_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « cc/base/thread.h ('k') | cc/base/thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698