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

Unified Diff: content/browser/shared_worker/shared_worker_message_filter.h

Issue 171123002: Revert 251334 "Add SharedWorkerMessageFilter for the embedded Sh..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1846/src/
Patch Set: Created 6 years, 10 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 | « no previous file | content/browser/shared_worker/shared_worker_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/shared_worker/shared_worker_message_filter.h
===================================================================
--- content/browser/shared_worker/shared_worker_message_filter.h (revision 251801)
+++ content/browser/shared_worker/shared_worker_message_filter.h (working copy)
@@ -1,76 +0,0 @@
-// Copyright 2014 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_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
-#define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
-
-#include "content/browser/worker_host/worker_storage_partition.h"
-#include "content/public/browser/browser_message_filter.h"
-
-class GURL;
-struct ViewHostMsg_CreateWorker_Params;
-
-namespace content {
-class MessagePortMessageFilter;
-class ResourceContext;
-
-// If "enable-embedded-shared-worker" is set this class will be used instead of
-// WorkerMessageFilter.
-class SharedWorkerMessageFilter : public BrowserMessageFilter {
- public:
- SharedWorkerMessageFilter(int render_process_id,
- ResourceContext* resource_context,
- const WorkerStoragePartition& partition,
- MessagePortMessageFilter* message_port_filter);
-
- // BrowserMessageFilter implementation.
- virtual void OnChannelClosing() OVERRIDE;
- virtual bool OnMessageReceived(const IPC::Message& message,
- bool* message_was_ok) OVERRIDE;
-
- int GetNextRoutingID();
- int render_process_id() const { return render_process_id_; }
-
- MessagePortMessageFilter* message_port_message_filter() const {
- return message_port_message_filter_;
- }
-
- private:
- virtual ~SharedWorkerMessageFilter();
-
- // Message handlers.
- void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params,
- int* route_id);
- void OnForwardToWorker(const IPC::Message& message);
- void OnDocumentDetached(unsigned long long document_id);
- void OnWorkerContextClosed(int worker_route_id);
- void OnWorkerContextDestroyed(int worker_route_id);
- void OnWorkerScriptLoaded(int worker_route_id);
- void OnWorkerScriptLoadFailed(int worker_route_id);
- void OnWorkerConnected(int message_port_id, int worker_route_id);
- void OnAllowDatabase(int worker_route_id,
- const GURL& url,
- const base::string16& name,
- const base::string16& display_name,
- unsigned long estimated_size,
- bool* result);
- void OnAllowFileSystem(int worker_route_id,
- const GURL& url,
- bool* result);
- void OnAllowIndexedDB(int worker_route_id,
- const GURL& url,
- const base::string16& name,
- bool* result);
-
- const int render_process_id_;
- ResourceContext* const resource_context_;
- const WorkerStoragePartition partition_;
- MessagePortMessageFilter* const message_port_message_filter_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698