summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/event_bindings.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:34:06 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-06 20:34:06 +0000
commit52647690519017787e65b22941cbd7dd57b42b5f (patch)
treee32377afde4ad1e590123b26fb695cf6f610e6b5 /chrome/renderer/extensions/event_bindings.cc
parent37d75b246580a34cdcba5430a4df05c1243fd51b (diff)
downloadchromium_src-52647690519017787e65b22941cbd7dd57b42b5f.zip
chromium_src-52647690519017787e65b22941cbd7dd57b42b5f.tar.gz
chromium_src-52647690519017787e65b22941cbd7dd57b42b5f.tar.bz2
Create content::RenderThread interface and make code in chrome use that.
BUG=98716,98375,10837 Review URL: http://codereview.chromium.org/8165013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/event_bindings.cc')
-rw-r--r--chrome/renderer/extensions/event_bindings.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/renderer/extensions/event_bindings.cc b/chrome/renderer/extensions/event_bindings.cc
index 988c6fd..03cc664 100644
--- a/chrome/renderer/extensions/event_bindings.cc
+++ b/chrome/renderer/extensions/event_bindings.cc
@@ -19,7 +19,7 @@
#include "chrome/renderer/extensions/extension_dispatcher.h"
#include "chrome/renderer/extensions/extension_process_bindings.h"
#include "chrome/renderer/extensions/user_script_slave.h"
-#include "content/renderer/render_thread.h"
+#include "content/public/renderer/render_thread.h"
#include "content/renderer/render_view.h"
#include "googleurl/src/gurl.h"
#include "grit/renderer_resources.h"
@@ -34,11 +34,12 @@
using WebKit::WebFrame;
using WebKit::WebSecurityOrigin;
using WebKit::WebURL;
+using content::RenderThread;
namespace {
// Keep a local cache of RenderThread so that we can mock it out for unit tests.
-static RenderThreadBase* render_thread = NULL;
+static RenderThread* render_thread = NULL;
// A map of event names to the number of listeners for that event. We notify
// the browser about event listeners when we transition between 0 and 1.
@@ -173,11 +174,11 @@ v8::Extension* EventBindings::Get(ExtensionDispatcher* dispatcher) {
}
// static
-void EventBindings::SetRenderThread(RenderThreadBase* thread) {
+void EventBindings::SetRenderThread(RenderThread* thread) {
render_thread = thread;
}
// static
-RenderThreadBase* EventBindings::GetRenderThread() {
- return render_thread ? render_thread : RenderThread::current();
+RenderThread* EventBindings::GetRenderThread() {
+ return render_thread ? render_thread : RenderThread::Get();
}