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

Unified Diff: webkit/browser/blob/blob_storage_context.h

Issue 23223003: Chromium Blob hacking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « webkit/browser/blob/blob_data_handle.h ('k') | webkit/browser/blob/blob_storage_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/blob/blob_storage_context.h
diff --git a/webkit/browser/blob/blob_storage_context.h b/webkit/browser/blob/blob_storage_context.h
index c9747aea3eddda4b647660432dd49f696ebe76e8..eec1fee8c23089a45b761b79e3f9e785d28f58fd 100644
--- a/webkit/browser/blob/blob_storage_context.h
+++ b/webkit/browser/blob/blob_storage_context.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "webkit/browser/blob/blob_data_handle.h"
#include "webkit/browser/webkit_storage_browser_export.h"
#include "webkit/common/blob/blob_data.h"
@@ -42,9 +43,13 @@ class WEBKIT_STORAGE_BROWSER_EXPORT BlobStorageContext
// blob cannot be added due to memory consumption, returns NULL.
scoped_ptr<BlobDataHandle> AddFinishedBlob(const BlobData* blob_data);
+ // Temporary support for mapping oldstyle blobUrls to new style uuids.
+ std::string LookupUuidFromDeprecatedURL(const GURL& url);
+
private:
friend class BlobDataHandle;
friend class BlobStorageHost;
+ friend class ViewBlobInternalsJob;
enum EntryFlags {
BEING_BUILT = 1 << 0,
@@ -75,6 +80,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT BlobStorageContext
void RegisterPublicBlobURL(const GURL& url, const std::string& uuid);
void RevokePublicBlobURL(const GURL& url);
+ // Temporary support for mapping old style blobUrls to new style uuids.
+ void DeprecatedRegisterPrivateBlobURL(const GURL& url,
+ const std::string& uuid);
+ void DeprecatedRevokePrivateBlobURL(const GURL& url);
+
bool ExpandStorageItems(BlobData* target_blob_data,
BlobData* src_blob_data,
uint64 offset,
@@ -96,6 +106,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT BlobStorageContext
BlobMap blob_map_;
BlobURLMap public_blob_urls_;
+ BlobURLMap deprecated_blob_urls_;
// Used to keep track of how much memory is being utitlized for blob data,
// we count only the items of TYPE_DATA which are held in memory and not
« no previous file with comments | « webkit/browser/blob/blob_data_handle.h ('k') | webkit/browser/blob/blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698