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

Unified Diff: content/child/blob_storage/blob_message_filter.h

Issue 1414123002: [BlobAsync] Renderer support for blob file writing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-hookup
Patch Set: comments Created 4 years, 7 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/child/blob_storage/blob_message_filter.h
diff --git a/content/child/blob_storage/blob_message_filter.h b/content/child/blob_storage/blob_message_filter.h
index 26266658a22e301cc61aa3f27ec15198ed1a4d96..7f4ed9179698322c43c474426f3acae2f38c772e 100644
--- a/content/child/blob_storage/blob_message_filter.h
+++ b/content/child/blob_storage/blob_message_filter.h
@@ -7,15 +7,21 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory.h"
#include "ipc/ipc_platform_file.h"
#include "ipc/message_filter.h"
#include "storage/common/blob_storage/blob_storage_constants.h"
+namespace base {
+class TaskRunner;
+}
+
namespace IPC {
class Sender;
class Message;
@@ -23,6 +29,7 @@ class Message;
namespace storage {
struct BlobItemBytesRequest;
+struct BlobItemBytesResponse;
}
namespace content {
@@ -32,8 +39,9 @@ namespace content {
// operated on by the IO thread.
class BlobMessageFilter : public IPC::MessageFilter {
public:
- BlobMessageFilter();
+ BlobMessageFilter(scoped_refptr<base::TaskRunner> file_runner);
+ void OnChannelClosing() override;
void OnFilterAdded(IPC::Sender* sender) override;
bool OnMessageReceived(const IPC::Message& message) override;
bool GetSupportedMessageClasses(
@@ -55,6 +63,7 @@ class BlobMessageFilter : public IPC::MessageFilter {
void OnDoneBuildingBlob(const std::string& uuid);
IPC::Sender* sender_;
+ scoped_refptr<base::TaskRunner> file_runner_;
DISALLOW_COPY_AND_ASSIGN(BlobMessageFilter);
};

Powered by Google App Engine
This is Rietveld 408576698