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

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

Issue 140333011: Add some empty classes for the embedded SharedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
Index: content/browser/worker_host/shared_worker_message_filter.h
diff --git a/content/browser/worker_host/shared_worker_message_filter.h b/content/browser/worker_host/shared_worker_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c70a70755cf4316d1b2f74b6810b77d58bac848
--- /dev/null
+++ b/content/browser/worker_host/shared_worker_message_filter.h
@@ -0,0 +1,43 @@
+// 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_WORKER_HOST_SHARED_WORKER_MESSAGE_FILTER_H_
+#define CONTENT_BROWSER_WORKER_HOST_SHARED_WORKER_MESSAGE_FILTER_H_
+
+#include "base/callback.h"
+#include "content/browser/worker_host/worker_storage_partition.h"
+#include "content/public/browser/browser_message_filter.h"
+#include "url/gurl.h"
+
+class ResourceDispatcherHost;
+struct ViewHostMsg_CreateWorker_Params;
+
+namespace content {
+class MessagePortMessageFilter;
+class ResourceContext;
+
+// If "enable-embedded-shared-worker" is set this class will be used in stead of
+// WorkerMessageFilter.
+// TODO(horo): implement this class.
+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;
+
+ private:
+ virtual ~SharedWorkerMessageFilter();
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(SharedWorkerMessageFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_WORKER_HOST_SHARED_WORKER_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698