Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: webkit/tools/test_shell/test_web_worker.h

Issue 8416029: Removing dedicated worker-related IPC code (second round). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Style nit Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell.gypi ('k') | webkit/tools/test_shell/test_web_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_web_worker.h
diff --git a/webkit/tools/test_shell/test_web_worker.h b/webkit/tools/test_shell/test_web_worker.h
deleted file mode 100644
index 9c23ccceaf2719004a57b77369d4bf0465dc17b0..0000000000000000000000000000000000000000
--- a/webkit/tools/test_shell/test_web_worker.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// 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.
-
-#ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_
-#define WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebMessagePortChannel.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebWorkerClient.h"
-
-namespace WebKit {
-class WebApplicationCacheHost;
-class WebApplicationCacheHostClient;
-class WebFrame;
-class WebNotificationPresenter;
-class WebString;
-class WebURL;
-}
-
-// WebWorkers are not functional in test_shell. This class effectively
-// stubs things out.
-class TestWebWorker : public WebKit::WebWorker,
- public WebKit::WebWorkerClient,
- public base::RefCounted<TestWebWorker> {
- public:
- TestWebWorker();
-
- // WebWorker methods:
- virtual void startWorkerContext(const WebKit::WebURL& script_url,
- const WebKit::WebString& user_agent,
- const WebKit::WebString& source_code) {
- }
- virtual void terminateWorkerContext() {
- }
- virtual void postMessageToWorkerContext(
- const WebKit::WebString& message,
- const WebKit::WebMessagePortChannelArray& channel) {
- }
- virtual void workerObjectDestroyed();
- virtual void clientDestroyed() {
- }
-
- // WebWorkerClient methods:
- virtual void postMessageToWorkerObject(
- const WebKit::WebString& message,
- const WebKit::WebMessagePortChannelArray& channel) {
- }
- virtual void postExceptionToWorkerObject(
- const WebKit::WebString& error_message,
- int line_number,
- const WebKit::WebString& source_url) {
- }
- virtual void postConsoleMessageToWorkerObject(
- int destination_id,
- int source_id,
- int message_type,
- int message_level,
- const WebKit::WebString& message,
- int line_number,
- const WebKit::WebString& source_url) {
- }
- virtual void confirmMessageFromWorkerObject(bool has_pending_activity) { }
- virtual void reportPendingActivity(bool has_pending_activity) { }
- virtual void workerContextClosed() { }
- virtual void workerContextDestroyed();
- virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client);
- virtual WebKit::WebNotificationPresenter* notificationPresenter();
- virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost(
- WebKit::WebApplicationCacheHostClient*);
- virtual bool allowDatabase(WebKit::WebFrame* frame,
- const WebKit::WebString& name,
- const WebKit::WebString& display_name,
- unsigned long estimated_size);
-
- private:
- friend class base::RefCounted<TestWebWorker>;
-
- virtual ~TestWebWorker();
-
- DISALLOW_COPY_AND_ASSIGN(TestWebWorker);
-};
-
-#endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEB_WORKER_H_
« no previous file with comments | « webkit/tools/test_shell/test_shell.gypi ('k') | webkit/tools/test_shell/test_web_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698