diff options
author | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
---|---|---|
committer | enne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 20:58:10 +0000 |
commit | 184fac5add06d5f4670fa6be4a4d3b39232d51bb (patch) | |
tree | 7efc1d20146fcafdbe408fa67292117c41e9393f /cc/scoped_thread_proxy.h | |
parent | fb7ffba75e81a79436434bab0715be0d6e67bc07 (diff) | |
download | chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.zip chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.gz chromium_src-184fac5add06d5f4670fa6be4a4d3b39232d51bb.tar.bz2 |
cc: Rename cc classes and members to match filenames
BUG=155413
Review URL: https://codereview.chromium.org/11189043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scoped_thread_proxy.h')
-rw-r--r-- | cc/scoped_thread_proxy.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cc/scoped_thread_proxy.h b/cc/scoped_thread_proxy.h index c6ac440..78f862e 100644 --- a/cc/scoped_thread_proxy.h +++ b/cc/scoped_thread_proxy.h @@ -24,22 +24,22 @@ namespace cc { // Implementation note: Unlike ScopedRunnableMethodFactory in Chromium, pending tasks are not cancelled by actually // destroying the proxy. Instead each pending task holds a reference to the proxy to avoid maintaining an explicit // list of outstanding tasks. -class CCScopedThreadProxy : public ThreadSafeRefCounted<CCScopedThreadProxy> { +class ScopedThreadProxy : public ThreadSafeRefCounted<ScopedThreadProxy> { public: - static PassRefPtr<CCScopedThreadProxy> create(CCThread* targetThread) + static PassRefPtr<ScopedThreadProxy> create(Thread* targetThread) { DCHECK(base::PlatformThread::CurrentId() == targetThread->threadID()); - return adoptRef(new CCScopedThreadProxy(targetThread)); + return adoptRef(new ScopedThreadProxy(targetThread)); } - ~CCScopedThreadProxy(); + ~ScopedThreadProxy(); // Can be called from any thread. Posts a task to the target thread that runs unless // shutdown() is called before it runs. - void postTask(PassOwnPtr<CCThread::Task> task) + void postTask(PassOwnPtr<Thread::Task> task) { ref(); - m_targetThread->postTask(createCCThreadTask(this, &CCScopedThreadProxy::runTaskIfNotShutdown, task)); + m_targetThread->postTask(createThreadTask(this, &ScopedThreadProxy::runTaskIfNotShutdown, task)); } void shutdown() @@ -50,11 +50,11 @@ public: } private: - explicit CCScopedThreadProxy(CCThread* targetThread); + explicit ScopedThreadProxy(Thread* targetThread); - void runTaskIfNotShutdown(PassOwnPtr<CCThread::Task> popTask) + void runTaskIfNotShutdown(PassOwnPtr<Thread::Task> popTask) { - OwnPtr<CCThread::Task> task = popTask; + OwnPtr<Thread::Task> task = popTask; // If our shutdown flag is set, it's possible that m_targetThread has already been destroyed so don't // touch it. if (m_shutdown) { @@ -66,7 +66,7 @@ private: deref(); } - CCThread* m_targetThread; + Thread* m_targetThread; bool m_shutdown; // Only accessed on the target thread }; |