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

Unified Diff: chrome/browser/renderer_host/blob_message_filter.h

Issue 5698008: Switch a bunch of remaining filters to derive from BrowserMessageFilters so t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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: chrome/browser/renderer_host/blob_message_filter.h
===================================================================
--- chrome/browser/renderer_host/blob_message_filter.h (revision 68877)
+++ chrome/browser/renderer_host/blob_message_filter.h (working copy)
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_
-#define CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_
+#ifndef CHROME_BROWSER_RENDERER_HOST_BLOB_MESSAGE_FILTER_H_
+#define CHROME_BROWSER_RENDERER_HOST_BLOB_MESSAGE_FILTER_H_
#include "base/hash_tables.h"
-#include "base/ref_counted.h"
+#include "chrome/browser/browser_message_filter.h"
class ChromeBlobStorageContext;
class GURL;
@@ -19,14 +19,16 @@
class BlobData;
}
-class BlobDispatcherHost {
+class BlobMessageFilter : public BrowserMessageFilter {
public:
- BlobDispatcherHost(int process_id,
- ChromeBlobStorageContext* blob_storage_context);
- ~BlobDispatcherHost();
+ BlobMessageFilter(int process_id,
+ ChromeBlobStorageContext* blob_storage_context);
+ ~BlobMessageFilter();
- void Shutdown();
- bool OnMessageReceived(const IPC::Message& message, bool* msg_is_ok);
+ // BrowserMessageFilter implementation.
+ virtual void OnChannelClosing();
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok);
private:
void OnRegisterBlobUrl(const GURL& url,
@@ -43,7 +45,7 @@
// all of them when the renderer process dies.
base::hash_set<std::string> blob_urls_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(BlobDispatcherHost);
+ DISALLOW_IMPLICIT_CONSTRUCTORS(BlobMessageFilter);
};
-#endif // CHROME_BROWSER_RENDERER_HOST_BLOB_DISPATCHER_HOST_H_
+#endif // CHROME_BROWSER_RENDERER_HOST_BLOB_MESSAGE_FILTER_H_
« no previous file with comments | « chrome/browser/renderer_host/blob_dispatcher_host.cc ('k') | chrome/browser/renderer_host/blob_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698