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 285f8211d7d7611ca30d2d9d4518c6d578b5178f..7ca41c286e33758684e4b86949178efe031e9eb4 100644 |
--- a/content/browser/shared_worker/shared_worker_message_filter.h |
+++ b/content/browser/shared_worker/shared_worker_message_filter.h |
@@ -6,6 +6,7 @@ |
#define CONTENT_BROWSER_SHARED_WORKER_SHARED_WORKER_MESSAGE_FILTER_H_ |
#include "content/browser/worker_host/worker_storage_partition.h" |
+#include "content/common/content_export.h" |
#include "content/public/browser/browser_message_filter.h" |
class GURL; |
@@ -17,7 +18,7 @@ class ResourceContext; |
// If "enable-embedded-shared-worker" is set this class will be used instead of |
// WorkerMessageFilter. |
-class SharedWorkerMessageFilter : public BrowserMessageFilter { |
+class CONTENT_EXPORT SharedWorkerMessageFilter : public BrowserMessageFilter { |
public: |
SharedWorkerMessageFilter(int render_process_id, |
ResourceContext* resource_context, |
@@ -36,9 +37,11 @@ class SharedWorkerMessageFilter : public BrowserMessageFilter { |
return message_port_message_filter_; |
} |
- private: |
+ protected: |
+ // This is protected, so we can define sub classes for testing. |
virtual ~SharedWorkerMessageFilter(); |
+ private: |
// Message handlers. |
void OnCreateWorker(const ViewHostMsg_CreateWorker_Params& params, |
int* route_id); |