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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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 dab61dc7759d124478715f8ce78cbcc0a72258c4..cf296b64cad1183681067aca1f6544fafd7c8560 100644
--- a/storage/browser/blob/blob_url_request_job.h
+++ b/storage/browser/blob/blob_url_request_job.h
@@ -12,8 +12,8 @@
#include "net/http/http_byte_range.h"
#include "net/http/http_status_code.h"
#include "net/url_request/url_request_job.h"
+#include "storage/browser/blob/blob_data_snapshot.h"
#include "storage/browser/storage_browser_export.h"
-#include "storage/common/blob/blob_data.h"
namespace base {
class MessageLoopProxy;
@@ -38,7 +38,7 @@ class STORAGE_EXPORT BlobURLRequestJob
public:
BlobURLRequestJob(net::URLRequest* request,
net::NetworkDelegate* network_delegate,
- const scoped_refptr<BlobData>& blob_data,
+ scoped_ptr<BlobDataSnapshot> blob_data,
storage::FileSystemContext* file_system_context,
base::MessageLoopProxy* resolving_message_loop_proxy);
@@ -70,7 +70,7 @@ class STORAGE_EXPORT BlobURLRequestJob
bool ReadItem();
void AdvanceItem();
void AdvanceBytesRead(int result);
- bool ReadBytesItem(const BlobData::Item& item, int bytes_to_read);
+ bool ReadBytesItem(const BlobDataItem& item, int bytes_to_read);
bool ReadFileItem(FileStreamReader* reader, int bytes_to_read);
void DidReadFile(int result);
@@ -92,7 +92,7 @@ class STORAGE_EXPORT BlobURLRequestJob
// Creates a FileStreamReader for the item at |index| with additional_offset.
void CreateFileStreamReader(size_t index, int64 additional_offset);
- scoped_refptr<BlobData> blob_data_;
+ scoped_ptr<BlobDataSnapshot> blob_data_;
// Variables for controlling read from |blob_data_|.
scoped_refptr<storage::FileSystemContext> file_system_context_;

Powered by Google App Engine
This is Rietveld 408576698