diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 18:34:24 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 18:34:24 +0000 |
commit | 656475d275524893e4e9b1f02469fe470721a14e (patch) | |
tree | 76198770e24f0bea147c10a50ae2a3bf9c7f7274 /chrome/browser/chrome_thread.h | |
parent | 7e19edf7255b366b5e4b9b0bb77caf9842a37f1b (diff) | |
download | chromium_src-656475d275524893e4e9b1f02469fe470721a14e.zip chromium_src-656475d275524893e4e9b1f02469fe470721a14e.tar.gz chromium_src-656475d275524893e4e9b1f02469fe470721a14e.tar.bz2 |
Created a stock implementation of the MessageLoopProxy interface than can be used to create an implementation that targets the current thread's message loop.
BUG=None
TEST=Unit tests provided.
Review URL: http://codereview.chromium.org/1837003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_thread.h')
-rw-r--r-- | chrome/browser/chrome_thread.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/chrome_thread.h b/chrome/browser/chrome_thread.h index 676f6b7..da7493f 100644 --- a/chrome/browser/chrome_thread.h +++ b/chrome/browser/chrome_thread.h @@ -9,7 +9,9 @@ #include "base/task.h" #include "base/thread.h" +namespace base { class MessageLoopProxy; +} /////////////////////////////////////////////////////////////////////////////// // ChromeThread @@ -130,7 +132,7 @@ class ChromeThread : public base::Thread { // Callers can hold on to a refcounted MessageLoopProxy beyond the lifetime // of the thread. - static scoped_refptr<MessageLoopProxy> GetMessageLoopProxyForThread( + static scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxyForThread( ID identifier); // Use these templates in conjuction with RefCountedThreadSafe when you want |