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

Unified Diff: chrome/renderer/websharedworker_proxy.h

Issue 6713005: Move a bunch of gpu/worker/plugin renderer code to content. I temporarily disabled the sad plugi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | chrome/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/websharedworker_proxy.h
===================================================================
--- chrome/renderer/websharedworker_proxy.h (revision 78516)
+++ chrome/renderer/websharedworker_proxy.h (working copy)
@@ -1,58 +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_RENDERER_WEBSHAREDWORKER_PROXY_H_
-#define CHROME_RENDERER_WEBSHAREDWORKER_PROXY_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "chrome/renderer/webworker_base.h"
-#include "googleurl/src/gurl.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h"
-
-class ChildThread;
-
-// Implementation of the WebSharedWorker APIs. This object is intended to only
-// live long enough to allow the caller to send a "connect" event to the worker
-// thread. Once the connect event has been sent, all future communication will
-// happen via the WebMessagePortChannel, and the WebSharedWorker instance will
-// be freed.
-class WebSharedWorkerProxy : public WebKit::WebSharedWorker,
- private WebWorkerBase {
- public:
- // If the worker not loaded yet, route_id == MSG_ROUTING_NONE
- WebSharedWorkerProxy(ChildThread* child_thread,
- unsigned long long document_id,
- bool exists,
- int route_id,
- int render_view_route_id);
-
- // Implementations of WebSharedWorker APIs
- virtual bool isStarted();
- virtual void connect(WebKit::WebMessagePortChannel* channel,
- ConnectListener* listener);
- virtual void startWorkerContext(const WebKit::WebURL& script_url,
- const WebKit::WebString& name,
- const WebKit::WebString& user_agent,
- const WebKit::WebString& source_code,
- long long script_resource_appcache_id);
- virtual void terminateWorkerContext();
- virtual void clientDestroyed();
-
- // IPC::Channel::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message);
-
- private:
- void OnWorkerCreated();
-
- // The id for the placeholder worker instance we've stored on the
- // browser process (we need to pass this same route id back in when creating
- // the worker).
- int pending_route_id_;
- ConnectListener* connect_listener_;
-
- DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
-};
-
-#endif // CHROME_RENDERER_WEBSHAREDWORKER_PROXY_H_
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | chrome/renderer/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698