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

Unified Diff: cc/scoped_thread_proxy.h

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: cc/scoped_thread_proxy.h
diff --git a/cc/scoped_thread_proxy.h b/cc/scoped_thread_proxy.h
index 802046dcfa858a6dbe09b4d0896adac1b99f10f3..831bc7ec43cd73a2d3a086134676cc018d995c27 100644
--- a/cc/scoped_thread_proxy.h
+++ b/cc/scoped_thread_proxy.h
@@ -23,22 +23,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)
{
ASSERT(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()
@@ -49,11 +49,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) {
@@ -65,7 +65,7 @@ private:
deref();
}
- CCThread* m_targetThread;
+ Thread* m_targetThread;
bool m_shutdown; // Only accessed on the target thread
};

Powered by Google App Engine
This is Rietveld 408576698