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

Unified Diff: cc/base/thread_impl.h

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.h ('k') | cc/base/thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/thread_impl.h
diff --git a/cc/base/thread_impl.h b/cc/base/thread_impl.h
deleted file mode 100644
index 9bc47a80639503482e7540e80362b30bce557396..0000000000000000000000000000000000000000
--- a/cc/base/thread_impl.h
+++ /dev/null
@@ -1,44 +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.
-
-#ifndef CC_BASE_THREAD_IMPL_H_
-#define CC_BASE_THREAD_IMPL_H_
-
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
-#include "cc/base/cc_export.h"
-#include "cc/base/thread.h"
-
-namespace cc {
-
-// Implements cc::Thread in terms of base::MessageLoopProxy.
-class CC_EXPORT ThreadImpl : public Thread {
- public:
- // Creates a ThreadImpl wrapping the current thread.
- static scoped_ptr<cc::Thread> CreateForCurrentThread();
-
- // Creates a Thread wrapping a non-current thread.
- static scoped_ptr<cc::Thread> CreateForDifferentThread(
- scoped_refptr<base::MessageLoopProxy> thread);
-
- virtual ~ThreadImpl();
-
- virtual void PostTask(base::Closure cb) OVERRIDE;
- virtual void PostDelayedTask(base::Closure cb, base::TimeDelta delay)
- OVERRIDE;
- virtual bool BelongsToCurrentThread() const OVERRIDE;
- virtual base::SingleThreadTaskRunner* TaskRunner() OVERRIDE;
-
- private:
- explicit ThreadImpl(scoped_refptr<base::MessageLoopProxy> thread);
-
- scoped_refptr<base::MessageLoopProxy> thread_;
-
- DISALLOW_COPY_AND_ASSIGN(ThreadImpl);
-};
-
-} // namespace cc
-
-#endif // CC_BASE_THREAD_IMPL_H_
« 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