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

Unified Diff: content/browser/cache_storage/cache_storage_cache.h

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit tests build... Created 5 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
Index: content/browser/cache_storage/cache_storage_cache.h
diff --git a/content/browser/cache_storage/cache_storage_cache.h b/content/browser/cache_storage/cache_storage_cache.h
index 8e682eafe7eae2a5085752fb73c3645d6a6279d5..7952e4c7323e4d22e6a24c9e4c03d8b7a4ccec80 100644
--- a/content/browser/cache_storage/cache_storage_cache.h
+++ b/content/browser/cache_storage/cache_storage_cache.h
@@ -100,6 +100,7 @@ class CONTENT_EXPORT CacheStorageCache
private:
friend class base::RefCounted<CacheStorageCache>;
+ friend class CacheStorageCacheTest;
friend class TestCacheStorageCache;
class BlobReader;
@@ -131,12 +132,11 @@ class CONTENT_EXPORT CacheStorageCache
// Match callbacks
void MatchImpl(scoped_ptr<ServiceWorkerFetchRequest> request,
const ResponseCallback& callback);
- void MatchDidOpenEntry(scoped_ptr<MatchContext> match_context, int rv);
+ void MatchDidOpenEntry(scoped_ptr<disk_cache::Entry*> entry_ptr,
+ scoped_ptr<MatchContext> match_context,
+ int rv);
void MatchDidReadMetadata(scoped_ptr<MatchContext> match_context,
scoped_ptr<CacheMetadata> headers);
- void MatchDidReadResponseBodyData(scoped_ptr<MatchContext> match_context,
- int rv);
- void MatchDoneWithBody(scoped_ptr<MatchContext> match_context);
// Puts the request and response object in the cache. The response body (if
// present) is stored in the cache, but not the request body. Returns OK on
@@ -146,7 +146,9 @@ class CONTENT_EXPORT CacheStorageCache
void PutImpl(scoped_ptr<PutContext> put_context);
void PutDidDelete(scoped_ptr<PutContext> put_context,
CacheStorageError delete_error);
- void PutDidCreateEntry(scoped_ptr<PutContext> put_context, int rv);
+ void PutDidCreateEntry(scoped_ptr<disk_cache::Entry*> entry_ptr,
+ scoped_ptr<PutContext> put_context,
+ int rv);
void PutDidWriteHeaders(scoped_ptr<PutContext> put_context,
int expected_bytes,
int rv);
« no previous file with comments | « no previous file | content/browser/cache_storage/cache_storage_cache.cc » ('j') | storage/browser/blob/blob_data_item.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698