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

Side by Side Diff: webkit/browser/blob/blob_storage_context.h

Issue 229473002: A handful of nits found while working on blobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « content/browser/indexed_db/indexed_db_leveldb_coding.h ('k') | no next file » | 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) 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
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_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698