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

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: 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
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..15d9a35013fa2cf15b25ae807aa38e3149c2e9c5 100644
--- a/content/browser/blob_storage/blob_dispatcher_host.h
+++ b/content/browser/blob_storage/blob_dispatcher_host.h
@@ -35,6 +35,7 @@ class BlobStorageContext;
}
namespace content {
+class ChildProcessSecurityPolicyImpl;
class ChromeBlobStorageContext;
// This class's responsibility is to listen for and dispatch blob storage
@@ -45,7 +46,8 @@ class ChromeBlobStorageContext;
// is one per child process.
class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter {
public:
- explicit BlobDispatcherHost(ChromeBlobStorageContext* blob_storage_context);
+ BlobDispatcherHost(int process_id,
+ ChromeBlobStorageContext* blob_storage_context);
// BrowserMessageFilter implementation.
void OnChannelClosing() override;
@@ -132,6 +134,9 @@ class CONTENT_EXPORT BlobDispatcherHost : public BrowserMessageFilter {
// Unregisters all blobs and urls that were registered in this host.
void ClearHostFromBlobStorageContext();
+ int process_id_;
+ 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_;

Powered by Google App Engine
This is Rietveld 408576698