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

Unified Diff: content/worker/websharedworker_stub.h

Issue 411283002: Remove disable-embedded-shared-worker flag and shared worker process related codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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/worker/shared_worker_permission_client_proxy.cc ('k') | content/worker/websharedworker_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/websharedworker_stub.h
diff --git a/content/worker/websharedworker_stub.h b/content/worker/websharedworker_stub.h
deleted file mode 100644
index c1a6287bfb7c3f5f757238146cd3f4c482345c50..0000000000000000000000000000000000000000
--- a/content/worker/websharedworker_stub.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2012 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_WORKER_WEBSHAREDWORKER_STUB_H_
-#define CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "content/child/scoped_child_process_reference.h"
-#include "content/worker/websharedworkerclient_proxy.h"
-#include "content/worker/worker_webapplicationcachehost_impl.h"
-#include "ipc/ipc_listener.h"
-#include "third_party/WebKit/public/web/WebSharedWorker.h"
-#include "url/gurl.h"
-
-namespace blink {
-class WebSharedWorker;
-}
-
-namespace content {
-
-class SharedWorkerDevToolsAgent;
-class WebMessagePortChannelImpl;
-
-// This class creates a WebSharedWorker, and translates incoming IPCs to the
-// appropriate WebSharedWorker APIs.
-class WebSharedWorkerStub : public IPC::Listener {
- public:
- WebSharedWorkerStub(const GURL& url,
- const base::string16& name,
- const base::string16& content_security_policy,
- blink::WebContentSecurityPolicyType security_policy_type,
- bool pause_on_start,
- int route_id);
-
- // IPC::Listener implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void OnChannelError() OVERRIDE;
-
- // Invoked when the WebSharedWorkerClientProxy is shutting down.
- void Shutdown();
-
- void WorkerScriptLoaded();
- void WorkerScriptLoadFailed();
-
- // Called after terminating the worker context to make sure that the worker
- // actually terminates (is not stuck in an infinite loop).
- void EnsureWorkerContextTerminates();
-
- WebSharedWorkerClientProxy* client() { return &client_; }
-
- // Returns the script url of this worker.
- const GURL& url();
-
-
- private:
- virtual ~WebSharedWorkerStub();
-
- void OnConnect(int sent_message_port_id, int routing_id);
-
- void OnTerminateWorkerContext();
-
- ScopedChildProcessReference process_ref_;
-
- int route_id_;
-
- // WebSharedWorkerClient that responds to outgoing API calls
- // from the worker object.
- WebSharedWorkerClientProxy client_;
-
- blink::WebSharedWorker* impl_;
- bool running_;
- GURL url_;
- scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_;
-
- typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList;
- PendingChannelList pending_channels_;
-
- DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerStub);
-};
-
-} // namespace content
-
-#endif // CONTENT_WORKER_WEBSHAREDWORKER_STUB_H_
« no previous file with comments | « content/worker/shared_worker_permission_client_proxy.cc ('k') | content/worker/websharedworker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698