summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/websharedworkerrepository_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/websharedworkerrepository_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/websharedworkerrepository_impl.h')
-rw-r--r--chrome/renderer/websharedworkerrepository_impl.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/renderer/websharedworkerrepository_impl.h b/chrome/renderer/websharedworkerrepository_impl.h
new file mode 100644
index 0000000..bf6369c
--- /dev/null
+++ b/chrome/renderer/websharedworkerrepository_impl.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2009 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 CHROME_RENDERER_WEB_SHARED_WORKER_REPOSITORY_IMPL_H_
+#define CHROME_RENDERER_WEB_SHARED_WORKER_REPOSITORY_IMPL_H_
+
+#include "webkit/api/public/WebSharedWorkerRepository.h"
+
+class WebKit::WebSharedWorker;
+
+class WebSharedWorkerRepositoryImpl : public WebKit::WebSharedWorkerRepository {
+ virtual WebKit::WebSharedWorker* lookup(const WebKit::WebURL& url,
+ const WebKit::WebString& name,
+ DocumentID document);
+
+ virtual void documentDetached(DocumentID document);
+
+ virtual bool hasSharedWorkers(DocumentID document);
+};
+
+#endif // CHROME_RENDERER_WEB_SHARED_WORKER_REPOSITORY_IMPL_H_