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

Unified Diff: content/browser/message_port_message_filter.h

Issue 187533002: Add SharedWorkerServiceImpl::CheckWorkerDependency(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ExternalClient
Patch Set: Incorporated jochen's comments. Created 6 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 | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/message_port_message_filter.h
diff --git a/content/browser/message_port_message_filter.h b/content/browser/message_port_message_filter.h
index 0dd38c94e6c04da97d2e334aa2f7402728db5836..5cc191ec934e9e208404ded30a215abe35ea49b7 100644
--- a/content/browser/message_port_message_filter.h
+++ b/content/browser/message_port_message_filter.h
@@ -6,13 +6,14 @@
#define CONTENT_BROWSER_MESSAGE_PORT_MESSAGE_FILTER_H_
#include "base/callback.h"
+#include "content/common/content_export.h"
#include "content/public/browser/browser_message_filter.h"
namespace content {
// Filter for MessagePort related IPC messages (creating and destroying a
// MessagePort, sending a message via a MessagePort etc).
-class MessagePortMessageFilter : public BrowserMessageFilter {
+class CONTENT_EXPORT MessagePortMessageFilter : public BrowserMessageFilter {
public:
typedef base::Callback<int(void)> NextRoutingIDCallback;
@@ -28,12 +29,14 @@ class MessagePortMessageFilter : public BrowserMessageFilter {
int GetNextRoutingID();
+ protected:
+ // This is protected, so we can define sub classes for testing.
+ virtual ~MessagePortMessageFilter();
+
private:
friend class BrowserThread;
friend class base::DeleteHelper<MessagePortMessageFilter>;
- virtual ~MessagePortMessageFilter();
-
// Message handlers.
void OnCreateMessagePort(int* route_id, int* message_port_id);
« no previous file with comments | « no previous file | content/browser/shared_worker/shared_worker_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698