| Index: webkit/blob/blob_storage_controller.h
|
| ===================================================================
|
| --- webkit/blob/blob_storage_controller.h (revision 102191)
|
| +++ webkit/blob/blob_storage_controller.h (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "base/hash_tables.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/process.h"
|
| +#include "webkit/blob/blob_data.h"
|
|
|
| class GURL;
|
| class FilePath;
|
| @@ -21,15 +22,15 @@
|
|
|
| namespace webkit_blob {
|
|
|
| -class BlobData;
|
| -
|
| // This class handles the logistics of blob Storage within the browser process.
|
| class BlobStorageController {
|
| public:
|
| BlobStorageController();
|
| ~BlobStorageController();
|
|
|
| - void RegisterBlobUrl(const GURL& url, const BlobData* blob_data);
|
| + void RegisterUnfinalizedBlobUrl(const GURL& url);
|
| + void AppendBlobDataItem(const GURL& url, const BlobData::Item& data_item);
|
| + void FinalizeBlob(const GURL& url, const std::string& content_type);
|
| void RegisterBlobUrlFrom(const GURL& url, const GURL& src_url);
|
| void UnregisterBlobUrl(const GURL& url);
|
| BlobData* GetBlobDataFromUrl(const GURL& url);
|
| @@ -51,6 +52,7 @@
|
|
|
| typedef base::hash_map<std::string, scoped_refptr<BlobData> > BlobMap;
|
| BlobMap blob_map_;
|
| + BlobMap unfinalized_blob_map_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(BlobStorageController);
|
| };
|
|
|