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

Side by Side 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, 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/blob/blob_data.cc ('k') | webkit/blob/blob_storage_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
6 #define WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
7
8 #include "base/hash_tables.h"
9 #include "base/process.h"
10 #include "base/ref_counted.h"
11
12 class GURL;
13
14 namespace webkit_blob {
15
16 class BlobData;
17
18 // This class handles the logistics of blob Storage within the browser process.
19 class BlobStorageController {
20 public:
21 BlobStorageController();
22 ~BlobStorageController();
23
24 void RegisterBlobUrl(const GURL& url, const BlobData* blob_data);
25 void RegisterBlobUrlFrom(const GURL& url, const GURL& src_url);
26 void UnregisterBlobUrl(const GURL& url);
27 BlobData* GetBlobDataFromUrl(const GURL& url);
28
29 private:
30 void AppendStorageItems(BlobData* target_blob_data,
31 BlobData* src_blob_data,
32 uint64 offset,
33 uint64 length);
34
35 typedef base::hash_map<std::string, scoped_refptr<BlobData> > BlobMap;
36 BlobMap blob_map_;
37
38 DISALLOW_COPY_AND_ASSIGN(BlobStorageController);
39 };
40
41 } // namespace webkit_blob
42
43 #endif // WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
OLDNEW
« 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