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

Unified Diff: cc/base/thread_impl.cc

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: NULLrefptrs 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/thread_impl.h ('k') | cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/thread_impl.cc
diff --git a/cc/base/thread_impl.cc b/cc/base/thread_impl.cc
deleted file mode 100644
index c76213dfdedba4ed93c7d2c1c9a2a0d0c7e0b09f..0000000000000000000000000000000000000000
--- a/cc/base/thread_impl.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/base/thread_impl.h"
-
-#include "base/message_loop.h"
-
-namespace cc {
-
-scoped_ptr<Thread> ThreadImpl::CreateForCurrentThread() {
- return scoped_ptr<Thread>(
- new ThreadImpl(base::MessageLoopProxy::current())).Pass();
-}
-
-scoped_ptr<Thread> ThreadImpl::CreateForDifferentThread(
- scoped_refptr<base::MessageLoopProxy> thread) {
- return scoped_ptr<Thread>(new ThreadImpl(thread)).Pass();
-}
-
-ThreadImpl::~ThreadImpl() {}
-
-void ThreadImpl::PostTask(base::Closure cb) {
- thread_->PostTask(FROM_HERE, cb);
-}
-
-void ThreadImpl::PostDelayedTask(base::Closure cb, base::TimeDelta delay) {
- thread_->PostDelayedTask(FROM_HERE, cb, delay);
-}
-
-bool ThreadImpl::BelongsToCurrentThread() const {
- return thread_->BelongsToCurrentThread();
-}
-
-base::SingleThreadTaskRunner* ThreadImpl::TaskRunner() {
- return thread_.get();
-}
-
-ThreadImpl::ThreadImpl(scoped_refptr<base::MessageLoopProxy> thread)
- : thread_(thread) {}
-
-} // namespace cc
« no previous file with comments | « cc/base/thread_impl.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698