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

Unified Diff: storage/browser/blob/blob_storage_registry.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 5 years 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
Index: storage/browser/blob/blob_storage_registry.h
diff --git a/storage/browser/blob/blob_storage_registry.h b/storage/browser/blob/blob_storage_registry.h
index 8a79493ea6c330610a979b5829e1f96ae65159ce..f828d1583910aa6dfd4e40bc577c1e56dc1836e6 100644
--- a/storage/browser/blob/blob_storage_registry.h
+++ b/storage/browser/blob/blob_storage_registry.h
@@ -75,6 +75,7 @@ class STORAGE_EXPORT BlobStorageRegistry {
// Gets the blob entry for the given uuid. Returns nullptr if the entry
// does not exist.
Entry* GetEntry(const std::string& uuid);
+ const Entry* GetEntry(const std::string& uuid) const;
// Creates a url mapping from blob uuid to the given url. Returns false if
// the uuid isn't mapped to an entry or if there already is a map for the URL.
@@ -95,6 +96,7 @@ class STORAGE_EXPORT BlobStorageRegistry {
size_t url_count() const { return url_to_uuid_.size(); }
private:
+ friend class ViewBlobInternalsJob;
using BlobMap = base::ScopedPtrHashMap<std::string, scoped_ptr<Entry>>;
using URLMap = std::map<GURL, std::string>;

Powered by Google App Engine
This is Rietveld 408576698