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

Side by Side Diff: webkit/blob/blob_storage_controller.h

Issue 8508059: build blob as a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up nits Created 9 years, 1 month 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_export.h ('k') | webkit/blob/blob_url_request_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_ 5 #ifndef WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
6 #define WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_ 6 #define WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/hash_tables.h" 11 #include "base/hash_tables.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/process.h" 13 #include "base/process.h"
14 #include "webkit/blob/blob_data.h" 14 #include "webkit/blob/blob_data.h"
15 #include "webkit/blob/blob_export.h"
15 16
16 class GURL; 17 class GURL;
17 class FilePath; 18 class FilePath;
18 19
19 namespace base { 20 namespace base {
20 class Time; 21 class Time;
21 } 22 }
22 namespace net { 23 namespace net {
23 class UploadData; 24 class UploadData;
24 } 25 }
25 26
26 namespace webkit_blob { 27 namespace webkit_blob {
27 28
28 // This class handles the logistics of blob Storage within the browser process. 29 // This class handles the logistics of blob Storage within the browser process.
29 class BlobStorageController { 30 class BLOB_EXPORT BlobStorageController {
30 public: 31 public:
31 BlobStorageController(); 32 BlobStorageController();
32 ~BlobStorageController(); 33 ~BlobStorageController();
33 34
34 void StartBuildingBlob(const GURL& url); 35 void StartBuildingBlob(const GURL& url);
35 void AppendBlobDataItem(const GURL& url, const BlobData::Item& data_item); 36 void AppendBlobDataItem(const GURL& url, const BlobData::Item& data_item);
36 void FinishBuildingBlob(const GURL& url, const std::string& content_type); 37 void FinishBuildingBlob(const GURL& url, const std::string& content_type);
37 void AddFinishedBlob(const GURL& url, const BlobData* blob_data); 38 void AddFinishedBlob(const GURL& url, const BlobData* blob_data);
38 void CloneBlob(const GURL& url, const GURL& src_url); 39 void CloneBlob(const GURL& url, const GURL& src_url);
39 void RemoveBlob(const GURL& url); 40 void RemoveBlob(const GURL& url);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Multiple urls can refer to the same blob data, this map keeps track of 75 // Multiple urls can refer to the same blob data, this map keeps track of
75 // how many urls refer to a BlobData. 76 // how many urls refer to a BlobData.
76 BlobDataUsageMap blob_data_usage_count_; 77 BlobDataUsageMap blob_data_usage_count_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(BlobStorageController); 79 DISALLOW_COPY_AND_ASSIGN(BlobStorageController);
79 }; 80 };
80 81
81 } // namespace webkit_blob 82 } // namespace webkit_blob
82 83
83 #endif // WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_ 84 #endif // WEBKIT_BLOB_BLOB_STORAGE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « webkit/blob/blob_export.h ('k') | webkit/blob/blob_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698