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

Unified Diff: webkit/blob/blob_storage_controller.h

Issue 3108042: Support sending BlobData to browser process. Also support sending UploadData... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « webkit/blob/blob_data.cc ('k') | webkit/blob/blob_storage_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_storage_controller.h
===================================================================
--- webkit/blob/blob_storage_controller.h (revision 0)
+++ webkit/blob/blob_storage_controller.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
+#define WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
+
+#include "base/hash_tables.h"
+#include "base/process.h"
+#include "base/ref_counted.h"
+
+class GURL;
+
+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 RegisterBlobUrlFrom(const GURL& url, const GURL& src_url);
+ void UnregisterBlobUrl(const GURL& url);
+ BlobData* GetBlobDataFromUrl(const GURL& url);
+
+ private:
+ void AppendStorageItems(BlobData* target_blob_data,
+ BlobData* src_blob_data,
+ uint64 offset,
+ uint64 length);
+
+ typedef base::hash_map<std::string, scoped_refptr<BlobData> > BlobMap;
+ BlobMap blob_map_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlobStorageController);
+};
+
+} // namespace webkit_blob
+
+#endif // WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
Property changes on: webkit\blob\blob_storage_controller.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/blob/blob_data.cc ('k') | webkit/blob/blob_storage_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698