summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/renderer_webkitclient_impl.h
diff options
context:
space:
mode:
authoratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:11:47 +0000
committeratwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-30 18:11:47 +0000
commitab3505360bf6612d18915a39a0fec74b00642e82 (patch)
tree7a39d15a688b8e52c839fb9151851b2a37533ed0 /chrome/renderer/renderer_webkitclient_impl.h
parent06b9e3b77773477b5ee889ded41d10741d6b0647 (diff)
downloadchromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.zip
chromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.tar.gz
chromium_src-ab3505360bf6612d18915a39a0fec74b00642e82.tar.bz2
Initial pass of shared workers renderer-side code
Added initial interface hooks betweek WebKit code and renderer-side worker code. The proper messages are generated to fire off a shared worker, but they are currently ignored by the browser process. BUG=26233 TEST=none (will enable layout tests when basic functionality available) Review URL: http://codereview.chromium.org/340036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webkitclient_impl.h')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.h b/chrome/renderer/renderer_webkitclient_impl.h
index 79e56fc..28056c3 100644
--- a/chrome/renderer/renderer_webkitclient_impl.h
+++ b/chrome/renderer/renderer_webkitclient_impl.h
@@ -6,6 +6,7 @@
#define CHROME_RENDERER_RENDERER_WEBKIT_CLIENT_IMPL_H_
#include "base/platform_file.h"
+#include "chrome/renderer/websharedworkerrepository_impl.h"
#include "webkit/glue/simple_webmimeregistry_impl.h"
#include "webkit/glue/webclipboard_impl.h"
#include "webkit/glue/webkitclient_impl.h"
@@ -64,6 +65,8 @@ class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl {
virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
WebKit::WebApplicationCacheHostClient*);
+ virtual WebKit::WebSharedWorkerRepository* sharedWorkerRepository();
+
private:
class MimeRegistry : public webkit_glue::SimpleWebMimeRegistryImpl {
public:
@@ -106,6 +109,11 @@ class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl {
// increments by 1, for every enable decrements by 1. When it reaches 0,
// we tell the browser to enable fast termination.
int sudden_termination_disables_;
+
+ // Implementation of the WebSharedWorkerRepository APIs (provides an interface
+ // to WorkerService on the browser thread.
+ WebSharedWorkerRepositoryImpl shared_worker_repository_;
+
};
#endif // CHROME_RENDERER_WEBKIT_CLIENT_IMPL_H_