Index: content/public/browser/browser_context.h |
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h |
index 0a022e4066e8162fe546133dfb22acf869ed1398..f20b40f38308f2a2ad0add8a5addf6812e6ea85a 100644 |
--- a/content/public/browser/browser_context.h |
+++ b/content/public/browser/browser_context.h |
@@ -31,6 +31,7 @@ class SpecialStoragePolicy; |
namespace content { |
+class BlobHandle; |
class BrowserPluginGuestManager; |
class DownloadManager; |
class DownloadManagerDelegate; |
@@ -77,6 +78,13 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData { |
static content::StoragePartition* GetDefaultStoragePartition( |
BrowserContext* browser_context); |
+ typedef base::Callback<void(scoped_ptr<BlobHandle>)> BlobCallback; |
+ |
+ // |callback| returns a NULL scoped_ptr on failure. |
+ static void CreateMemoryBackedBlob(BrowserContext* browser_context, |
+ const char* data, size_t length, |
+ const BlobCallback& callback); |
+ |
// Ensures that the corresponding ResourceContext is initialized. Normally the |
// BrowserContext initializs the corresponding getters when its objects are |
// created, but if the embedder wants to pass the ResourceContext to another |