summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_web_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/test_web_worker.cc')
-rw-r--r--webkit/tools/test_shell/test_web_worker.cc41
1 files changed, 41 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_web_worker.cc b/webkit/tools/test_shell/test_web_worker.cc
new file mode 100644
index 0000000..3f064c0
--- /dev/null
+++ b/webkit/tools/test_shell/test_web_worker.cc
@@ -0,0 +1,41 @@
+// Copyright (c) 2011 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.
+
+#include "webkit/tools/test_shell/test_web_worker.h"
+
+TestWebWorker::TestWebWorker() {
+ AddRef(); // Adds the reference held for worker object.
+ AddRef(); // Adds the reference held for worker context object.
+}
+
+void TestWebWorker::workerObjectDestroyed() {
+ Release(); // Releases the reference held for worker object.
+}
+
+void TestWebWorker::workerContextDestroyed() {
+ Release(); // Releases the reference held for worker context object.
+}
+
+WebKit::WebWorker* TestWebWorker::createWorker(
+ WebKit::WebWorkerClient* client) {
+ return NULL;
+}
+
+WebKit::WebNotificationPresenter* TestWebWorker::notificationPresenter() {
+ return NULL;
+}
+
+WebKit::WebApplicationCacheHost* TestWebWorker::createApplicationCacheHost(
+ WebKit::WebApplicationCacheHostClient*) {
+ return NULL;
+}
+
+bool TestWebWorker::allowDatabase(WebKit::WebFrame* frame,
+ const WebKit::WebString& name,
+ const WebKit::WebString& display_name,
+ unsigned long estimated_size) {
+ return true;
+}
+
+TestWebWorker::~TestWebWorker() {}