| Index: content/browser/fileapi/fileapi_message_filter.h
|
| diff --git a/content/browser/fileapi/fileapi_message_filter.h b/content/browser/fileapi/fileapi_message_filter.h
|
| index 8c09c596055aaf4daf8914b4b605fa7852fe6083..96c504603099f57b9f7b6cd6432494dab8db9448 100644
|
| --- a/content/browser/fileapi/fileapi_message_filter.h
|
| +++ b/content/browser/fileapi/fileapi_message_filter.h
|
| @@ -13,8 +13,11 @@
|
| #include "base/containers/hash_tables.h"
|
| #include "base/files/file_util_proxy.h"
|
| #include "base/id_map.h"
|
| +#include "base/memory/ref_counted.h"
|
| #include "base/platform_file.h"
|
| #include "base/shared_memory.h"
|
| +#include "content/browser/streams/stream.h"
|
| +#include "content/browser/streams/stream_context.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/browser_message_filter.h"
|
| #include "webkit/browser/fileapi/file_system_operation_runner.h"
|
| @@ -54,13 +57,15 @@ class CONTENT_EXPORT FileAPIMessageFilter : public BrowserMessageFilter {
|
| int process_id,
|
| net::URLRequestContextGetter* request_context_getter,
|
| fileapi::FileSystemContext* file_system_context,
|
| - ChromeBlobStorageContext* blob_storage_context);
|
| + ChromeBlobStorageContext* blob_storage_context,
|
| + StreamContext* stream_context);
|
| // Used by the worker process host on the IO thread.
|
| FileAPIMessageFilter(
|
| int process_id,
|
| net::URLRequestContext* request_context,
|
| fileapi::FileSystemContext* file_system_context,
|
| - ChromeBlobStorageContext* blob_storage_context);
|
| + ChromeBlobStorageContext* blob_storage_context,
|
| + StreamContext* stream_context);
|
|
|
| // BrowserMessageFilter implementation.
|
| virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
|
| @@ -122,6 +127,7 @@ class CONTENT_EXPORT FileAPIMessageFilter : public BrowserMessageFilter {
|
| void OnDidReceiveSnapshotFile(int request_id);
|
|
|
| void OnStartBuildingBlob(const GURL& url);
|
| + void OnStartBuildingStream(const GURL& url, const std::string& content_type);
|
| void OnAppendBlobDataItem(const GURL& url,
|
| const webkit_blob::BlobData::Item& item);
|
| void OnAppendSharedMemory(const GURL& url, base::SharedMemoryHandle handle,
|
| @@ -169,6 +175,8 @@ class CONTENT_EXPORT FileAPIMessageFilter : public BrowserMessageFilter {
|
| int permissions,
|
| base::PlatformFileError* error);
|
|
|
| + scoped_refptr<Stream> GetStreamForURL(const GURL& url);
|
| +
|
| fileapi::FileSystemOperationRunner* operation_runner();
|
|
|
| int process_id_;
|
| @@ -186,6 +194,7 @@ class CONTENT_EXPORT FileAPIMessageFilter : public BrowserMessageFilter {
|
| net::URLRequestContext* request_context_;
|
|
|
| scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
|
| + scoped_refptr<StreamContext> stream_context_;
|
|
|
| // Keep track of blob URLs registered in this process. Need to unregister
|
| // all of them when the renderer process dies.
|
|
|