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

Unified Diff: content/renderer/webworker_proxy.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 | « content/renderer/webworker_base.cc ('k') | content/renderer/webworker_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webworker_proxy.h
diff --git a/content/renderer/webworker_proxy.h b/content/renderer/webworker_proxy.h
deleted file mode 100644
index 80014aca74e38dacf2391fbcfe335946c1202827..0000000000000000000000000000000000000000
--- a/content/renderer/webworker_proxy.h
+++ /dev/null
@@ -1,66 +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 CONTENT_RENDERER_WEBWORKER_PROXY_H_
-#define CONTENT_RENDERER_WEBWORKER_PROXY_H_
-#pragma once
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "content/renderer/webworker_base.h"
-#include "ipc/ipc_channel.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebWorker.h"
-
-class ChildThread;
-class GURL;
-class RenderView;
-struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params;
-
-// This class provides an implementation of WebWorker that the renderer provides
-// to the glue. This class converts function calls to IPC messages that are
-// dispatched in the worker process by WebWorkerClientProxy. It also receives
-// IPC messages from WebWorkerClientProxy which it converts to function calls to
-// WebWorkerClient.
-class WebWorkerProxy : public WebKit::WebWorker, private WebWorkerBase {
- public:
- WebWorkerProxy(WebKit::WebWorkerClient* client,
- ChildThread* child_thread,
- int render_view_route_id,
- int parent_appcache_host_id);
- virtual ~WebWorkerProxy();
-
- // WebWorker implementation.
- 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_array);
- virtual void workerObjectDestroyed();
- virtual void clientDestroyed();
-
- // IPC::Channel::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- private:
- void CancelCreation();
- void OnWorkerCreated();
- void OnWorkerContextDestroyed();
- void OnPostMessage(const string16& message,
- const std::vector<int>& sent_message_port_ids,
- const std::vector<int>& new_routing_ids);
- void OnPostConsoleMessageToWorkerObject(
- const WorkerHostMsg_PostConsoleMessageToWorkerObject_Params& params);
-
-
- // Used to communicate to the WebCore::Worker object in response to IPC
- // messages.
- WebKit::WebWorkerClient* client_;
-
- DISALLOW_COPY_AND_ASSIGN(WebWorkerProxy);
-};
-
-#endif // CONTENT_RENDERER_WEBWORKER_PROXY_H_
« no previous file with comments | « content/renderer/webworker_base.cc ('k') | content/renderer/webworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698