Chromium Code Reviews| Index: content/browser/blob_storage/blob_dispatcher_host.h |
| diff --git a/content/browser/blob_storage/blob_dispatcher_host.h b/content/browser/blob_storage/blob_dispatcher_host.h |
| index b004aa2ab30aed8b7e9c8add3a2820337890c936..f2e23eaff5b3767747ce92f7f1ff6abb8227c61e 100644 |
| --- a/content/browser/blob_storage/blob_dispatcher_host.h |
| +++ b/content/browser/blob_storage/blob_dispatcher_host.h |
| @@ -32,9 +32,11 @@ class BlobDataBuilder; |
| struct BlobItemBytesRequest; |
| struct BlobItemBytesResponse; |
| class BlobStorageContext; |
| +class FileSystemContext; |
| } |
| namespace content { |
| +class ChildProcessSecurityPolicyImpl; |
| class ChromeBlobStorageContext; |
| // This class's responsibility is to listen for and dispatch blob storage |
| @@ -45,7 +47,9 @@ class ChromeBlobStorageContext; |
| // is one per child process. |
| class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter { |
| public: |
| - explicit BlobDispatcherHost(ChromeBlobStorageContext* blob_storage_context); |
| + BlobDispatcherHost(int process_id, |
| + storage::FileSystemContext* file_system_context, |
| + ChromeBlobStorageContext* blob_storage_context); |
|
kinuko
2016/08/05 15:27:31
nit: I'd place file_system_context parameter after
dmurph
2016/08/05 19:12:45
Done.
|
| // BrowserMessageFilter implementation. |
| void OnChannelClosing() override; |
| @@ -132,6 +136,10 @@ class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter { |
| // Unregisters all blobs and urls that were registered in this host. |
| void ClearHostFromBlobStorageContext(); |
| + int process_id_; |
|
kinuko
2016/08/05 15:27:31
const
dmurph
2016/08/05 19:12:45
Done.
|
| + storage::FileSystemContext* file_system_context_; |
|
kinuko
2016/08/05 15:27:31
nit: I think this'd be safe, but maybe we'd better
dmurph
2016/08/05 19:12:45
The FileApiMessageFilter just stores the raw point
kinuko
2016/08/08 15:52:28
Either works for me as far as we don't crash/leak,
dmurph
2016/08/15 18:25:04
Done.
|
| + ChildProcessSecurityPolicyImpl* security_policy_; |
| + |
| // Collection of blob ids and a count of how many usages |
| // of that id are attributable to this consumer. |
| BlobReferenceMap blobs_inuse_map_; |