summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_web_worker.cc
blob: 3f064c0e063dc39d8a876a6eb9194a853c0f47e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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() {}