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

Unified Diff: content/browser/blob_storage/blob_dispatcher_host.h

Issue 2214293002: [BlobStorage] Added back security policy for files in blobs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made file system context refptr Created 4 years, 4 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
« no previous file with comments | « no previous file | content/browser/blob_storage/blob_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f9d1a98881e7556a12bf96bee12bb74c5975db21 100644
--- a/content/browser/blob_storage/blob_dispatcher_host.h
+++ b/content/browser/blob_storage/blob_dispatcher_host.h
@@ -32,6 +32,7 @@ class BlobDataBuilder;
struct BlobItemBytesRequest;
struct BlobItemBytesResponse;
class BlobStorageContext;
+class FileSystemContext;
}
namespace content {
@@ -45,7 +46,10 @@ class ChromeBlobStorageContext;
// is one per child process.
class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter {
public:
- explicit BlobDispatcherHost(ChromeBlobStorageContext* blob_storage_context);
+ BlobDispatcherHost(
+ int process_id,
+ scoped_refptr<ChromeBlobStorageContext> blob_storage_context,
+ scoped_refptr<storage::FileSystemContext> file_system_context);
// BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -132,6 +136,9 @@ class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter {
// Unregisters all blobs and urls that were registered in this host.
void ClearHostFromBlobStorageContext();
+ const int process_id_;
+ scoped_refptr<storage::FileSystemContext> file_system_context_;
+
// Collection of blob ids and a count of how many usages
// of that id are attributable to this consumer.
BlobReferenceMap blobs_inuse_map_;
« no previous file with comments | « no previous file | content/browser/blob_storage/blob_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698