OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 5 #ifndef WEBKIT_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
6 #define WEBKIT_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 6 #define WEBKIT_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const GURL& url, uint64 offset, uint64 length, | 94 const GURL& url, uint64 offset, uint64 length, |
95 const base::Time& expected_modification_time); | 95 const base::Time& expected_modification_time); |
96 | 96 |
97 bool IsInUse(const std::string& uuid); | 97 bool IsInUse(const std::string& uuid); |
98 bool IsBeingBuilt(const std::string& uuid); | 98 bool IsBeingBuilt(const std::string& uuid); |
99 bool IsUrlRegistered(const GURL& blob_url); | 99 bool IsUrlRegistered(const GURL& blob_url); |
100 | 100 |
101 BlobMap blob_map_; | 101 BlobMap blob_map_; |
102 BlobURLMap public_blob_urls_; | 102 BlobURLMap public_blob_urls_; |
103 | 103 |
104 // Used to keep track of how much memory is being utitlized for blob data, | 104 // Used to keep track of how much memory is being utilized for blob data, |
105 // we count only the items of TYPE_DATA which are held in memory and not | 105 // we count only the items of TYPE_DATA which are held in memory and not |
106 // items of TYPE_FILE. | 106 // items of TYPE_FILE. |
107 int64 memory_usage_; | 107 int64 memory_usage_; |
108 | 108 |
109 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); | 109 DISALLOW_COPY_AND_ASSIGN(BlobStorageContext); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace webkit_blob | 112 } // namespace webkit_blob |
113 | 113 |
114 #endif // WEBKIT_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ | 114 #endif // WEBKIT_BROWSER_BLOB_BLOB_STORAGE_CONTEXT_H_ |
OLD | NEW |