summaryrefslogtreecommitdiffstats
path: root/chrome/worker/webworkerclient_proxy.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 20:33:27 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-01 20:33:27 +0000
commit982e781d80d395cd9749de92d2efd6a309168cd3 (patch)
tree74cb4e36be8cf047c25812649a4f3a2f5325520f /chrome/worker/webworkerclient_proxy.h
parent52049d5cfde95de013f8f333f940fef4ecd31533 (diff)
downloadchromium_src-982e781d80d395cd9749de92d2efd6a309168cd3.zip
chromium_src-982e781d80d395cd9749de92d2efd6a309168cd3.tar.gz
chromium_src-982e781d80d395cd9749de92d2efd6a309168cd3.tar.bz2
Call WebWorkerClient on the main thread. This makes it consistent with the rest of the WebKit API, which is single threaded. Also a bunch of small fixes to make layout tests pass: the dll was being unloaded while its functions were still queued to be dispatched, and a string allocated in the dll was being GC'd in test shell.
BUG=11011 Review URL: http://codereview.chromium.org/102005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15087 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/webworkerclient_proxy.h')
-rw-r--r--chrome/worker/webworkerclient_proxy.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/worker/webworkerclient_proxy.h b/chrome/worker/webworkerclient_proxy.h
index f650d58..ccf9557 100644
--- a/chrome/worker/webworkerclient_proxy.h
+++ b/chrome/worker/webworkerclient_proxy.h
@@ -6,7 +6,6 @@
#define CHROME_WORKER_WEBWORKERCLIENT_PROXY_H_
#include "base/basictypes.h"
-#include "base/ref_counted.h"
#include "chrome/common/ipc_channel.h"
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebWorkerClient.h"
@@ -21,8 +20,7 @@ class WebWorker;
// IPCs that are sent to the renderer, where they're converted back to function
// calls by WebWorkerProxy.
class WebWorkerClientProxy : public WebKit::WebWorkerClient,
- public IPC::Channel::Listener,
- public base::RefCounted<WebWorkerClientProxy> {
+ public IPC::Channel::Listener {
public:
WebWorkerClientProxy(const GURL& url, int route_id);
@@ -47,7 +45,6 @@ class WebWorkerClientProxy : public WebKit::WebWorkerClient,
virtual void OnMessageReceived(const IPC::Message& message);
private:
- friend class base::RefCounted<WebWorkerClientProxy>;
~WebWorkerClientProxy ();
bool Send(IPC::Message* message);