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

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

Issue 187533002: Add SharedWorkerServiceImpl::CheckWorkerDependency(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ExternalClient
Patch Set: incorporated kinuko's comment 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
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);

Powered by Google App Engine
This is Rietveld 408576698