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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 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
Index: content/browser/shared_worker/shared_worker_message_filter.h
diff --git a/content/browser/shared_worker/shared_worker_message_filter.h b/content/browser/shared_worker/shared_worker_message_filter.h
index a43a9a6f116281b9a9653d248a192b3af625ae26..7f657500c8a55df319d3187277f2fc56e1df8124 100644
--- a/content/browser/shared_worker/shared_worker_message_filter.h
+++ b/content/browser/shared_worker/shared_worker_message_filter.h
@@ -15,17 +15,18 @@ struct ViewHostMsg_CreateWorker_Params;
struct ViewHostMsg_CreateWorker_Reply;
namespace content {
-class MessagePortMessageFilter;
class ResourceContext;
// Handles SharedWorker related IPC messages for one renderer process by
// forwarding them to the SharedWorkerServiceImpl singleton.
class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
public:
+ using NextRoutingIDCallback = base::Callback<int(void)>;
+
SharedWorkerMessageFilter(int render_process_id,
ResourceContext* resource_context,
const WorkerStoragePartition& partition,
- MessagePortMessageFilter* message_port_filter);
+ const NextRoutingIDCallback& callback);
// BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -34,10 +35,6 @@ class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
int GetNextRoutingID();
int render_process_id() const { return render_process_id_; }
- MessagePortMessageFilter* message_port_message_filter() const {
- return message_port_message_filter_;
- }
-
protected:
// This is protected, so we can define sub classes for testing.
~SharedWorkerMessageFilter() override;
@@ -57,7 +54,7 @@ class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter {
const int render_process_id_;
ResourceContext* const resource_context_;
const WorkerStoragePartition partition_;
- MessagePortMessageFilter* const message_port_message_filter_;
+ NextRoutingIDCallback next_routing_id_callback_;
DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter);
};
« no previous file with comments | « content/browser/shared_worker/shared_worker_host.cc ('k') | content/browser/shared_worker/shared_worker_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698