From 184fac5add06d5f4670fa6be4a4d3b39232d51bb Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Fri, 19 Oct 2012 20:58:10 +0000 Subject: 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 --- cc/scoped_thread_proxy.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cc/scoped_thread_proxy.h') 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 { +class ScopedThreadProxy : public ThreadSafeRefCounted { public: - static PassRefPtr create(CCThread* targetThread) + static PassRefPtr 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 task) + void postTask(PassOwnPtr 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 popTask) + void runTaskIfNotShutdown(PassOwnPtr popTask) { - OwnPtr task = popTask; + OwnPtr 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 }; -- cgit v1.1