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

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

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: omg, fix the correct base::Unretained... Created 5 years, 6 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: storage/browser/blob/blob_url_request_job.h
diff --git a/storage/browser/blob/blob_url_request_job.h b/storage/browser/blob/blob_url_request_job.h
index a4e10eda1fdde6600c77b37607a8651158561580..74d07ada58df6fbd4194f6ffcba8ead490865e80 100644
--- a/storage/browser/blob/blob_url_request_job.h
+++ b/storage/browser/blob/blob_url_request_job.h
@@ -6,6 +6,7 @@
#define STORAGE_BROWSER_BLOB_BLOB_URL_REQUEST_JOB_H_
#include <map>
+#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
@@ -19,10 +20,6 @@ namespace base {
class SingleThreadTaskRunner;
}
-namespace storage {
-class FileSystemContext;
-}
-
namespace net {
class DrainableIOBuffer;
class IOBuffer;
@@ -31,6 +28,7 @@ class IOBuffer;
namespace storage {
class FileStreamReader;
+class FileSystemContext;
// A request job that handles reading blob URLs.
class STORAGE_EXPORT BlobURLRequestJob
@@ -71,11 +69,14 @@ class STORAGE_EXPORT BlobURLRequestJob
void AdvanceItem();
void AdvanceBytesRead(int result);
bool ReadBytesItem(const BlobDataItem& item, int bytes_to_read);
- bool ReadFileItem(FileStreamReader* reader, int bytes_to_read);
+ bool ReadFileItem(FileStreamReader* reader, int bytes_to_read);
void DidReadFile(int chunk_number, int result);
void DeleteCurrentFileReader();
+ bool ReadDiskCacheEntryItem(const BlobDataItem& item, int bytes_to_read);
+ void DidReadDiskCacheEntry(int result);
+
int ComputeBytesToRead() const;
int BytesReadCompleted();

Powered by Google App Engine
This is Rietveld 408576698