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

Unified Diff: blimp/common/blob_cache/blob_cache.h

Issue 1970463004: Blimp: Add BlobChannel Helium messages and delegate impls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wez feedback Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | blimp/common/blob_cache/in_memory_blob_cache_unittest.cc » ('j') | blimp/common/logging.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/blob_cache/blob_cache.h
diff --git a/blimp/common/blob_cache/blob_cache.h b/blimp/common/blob_cache/blob_cache.h
index 45c9eb9de438a9986e46f6b1a9152df86cae3dad..1f8a2932723640f2346321797ca98e29cbcb9f5d 100644
--- a/blimp/common/blob_cache/blob_cache.h
+++ b/blimp/common/blob_cache/blob_cache.h
@@ -14,8 +14,11 @@
namespace blimp {
using BlobId = std::string;
-using BlobData = base::RefCountedData<const std::string>;
-using BlobDataPtr = scoped_refptr<BlobData>;
+using BlobData = base::RefCountedData<std::string>;
+
+// Immutable, ref-counted representation of blob payloads, suitable for sharing
+// across threads.
+using BlobDataPtr = scoped_refptr<const BlobData>;
// An interface for a cache of blobs.
class BLIMP_COMMON_EXPORT BlobCache {
« no previous file with comments | « no previous file | blimp/common/blob_cache/in_memory_blob_cache_unittest.cc » ('j') | blimp/common/logging.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698