Index: content/browser/loader/resource_message_filter.h |
diff --git a/content/browser/loader/resource_message_filter.h b/content/browser/loader/resource_message_filter.h |
index 44937a0b8431cf229ee93b47205cf95b0ed8b8eb..4037826d7b1ddf8686a94d6e88f0e0bc8191dfa2 100644 |
--- a/content/browser/loader/resource_message_filter.h |
+++ b/content/browser/loader/resource_message_filter.h |
@@ -10,9 +10,11 @@ |
#include "base/callback_forward.h" |
#include "base/macros.h" |
#include "base/memory/weak_ptr.h" |
+#include "base/sequenced_task_runner_helpers.h" |
#include "content/browser/host_zoom_level_context.h" |
#include "content/common/content_export.h" |
#include "content/public/browser/browser_message_filter.h" |
+#include "content/public/browser/browser_thread.h" |
#include "content/public/common/resource_type.h" |
namespace storage { |
@@ -58,6 +60,7 @@ class CONTENT_EXPORT ResourceMessageFilter : public BrowserMessageFilter { |
// BrowserMessageFilter implementation. |
void OnChannelClosing() override; |
bool OnMessageReceived(const IPC::Message& message) override; |
+ void OnDestruct() const override; |
void GetContexts(ResourceType resource_type, |
ResourceContext** resource_context, |
@@ -96,6 +99,9 @@ class CONTENT_EXPORT ResourceMessageFilter : public BrowserMessageFilter { |
~ResourceMessageFilter() override; |
private: |
+ friend struct BrowserThread::DeleteOnThread<BrowserThread::IO>; |
+ friend class base::DeleteHelper<ResourceMessageFilter>; |
+ |
// The ID of the child process. |
int child_id_; |