diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 07:06:31 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 07:06:31 +0000 |
commit | 646dce40970192643ce533518888dfaf9c736815 (patch) | |
tree | fb1d8f65794392b456e20f3e576a2eae5d2e4377 /chrome/test/worker/test_webworker.h | |
parent | 99ac91f2d045b836b2d3ab7927077322e7fa9967 (diff) | |
download | chromium_src-646dce40970192643ce533518888dfaf9c736815.zip chromium_src-646dce40970192643ce533518888dfaf9c736815.tar.gz chromium_src-646dce40970192643ce533518888dfaf9c736815.tar.bz2 |
Revert 12763.
Review URL: http://codereview.chromium.org/56055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/worker/test_webworker.h')
-rw-r--r-- | chrome/test/worker/test_webworker.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/chrome/test/worker/test_webworker.h b/chrome/test/worker/test_webworker.h deleted file mode 100644 index aa192e7..0000000 --- a/chrome/test/worker/test_webworker.h +++ /dev/null @@ -1,67 +0,0 @@ -// 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_TEST_WORKER_TEST_WEBWORKER_H_ -#define CHROME_TEST_WORKER_TEST_WEBWORKER_H_ - -#if ENABLE(WORKERS) - -#include <vector> - -#include "base/basictypes.h" -#include "base/ref_counted.h" -#include "webkit/glue/webworker.h" -#include "webkit/glue/webworkerclient.h" - -class GURL; -class TestWebWorkerHelper; - -class TestWebWorker : public WebWorker, - public WebWorkerClient, - public base::RefCounted<TestWebWorker> { - public: - TestWebWorker(WebWorkerClient* client, TestWebWorkerHelper* webworker_helper); - - // WebWorker implementation. - virtual void StartWorkerContext(const GURL& script_url, - const string16& user_agent, - const string16& source_code); - virtual void TerminateWorkerContext(); - virtual void PostMessageToWorkerContext(const string16& message); - virtual void WorkerObjectDestroyed(); - - // WebWorkerClient implementation. - virtual void PostMessageToWorkerObject(const string16& message); - virtual void PostExceptionToWorkerObject( - const string16& error_message, - int line_number, - const string16& source_url); - virtual void PostConsoleMessageToWorkerObject( - int destination, - int source, - int level, - const string16& message, - int line_number, - const string16& source_url); - virtual void ConfirmMessageFromWorkerObject(bool has_pending_activity); - virtual void ReportPendingActivity(bool has_pending_activity); - virtual void WorkerContextDestroyed(); - - private: - friend class base::RefCounted<TestWebWorker>; - virtual ~TestWebWorker(); - - static void InvokeMainThreadMethod(void* param); - - WebWorkerClient* webworkerclient_delegate_; - WebWorker* webworker_impl_; - TestWebWorkerHelper* webworker_helper_; - std::vector<string16> queued_messages_; - - DISALLOW_COPY_AND_ASSIGN(TestWebWorker); -}; - -#endif - -#endif // CHROME_TEST_WORKER_TEST_WEBWORKER_H_ |