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

Side by Side Diff: storage/browser/blob/blob_data_item.cc

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "storage/browser/blob/blob_data_item.h" 5 #include "storage/browser/blob/blob_data_item.h"
6 6
7 namespace storage { 7 namespace storage {
8 8
9 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item, 9 disk_cache::Entry* BlobDataItem::DataHandle::disk_cache_entry() const {
10 scoped_refptr<ShareableFileReference> file_handle) 10 return nullptr;
11 : item_(item.Pass()), file_handle_(file_handle) {
12 } 11 }
12
13 BlobDataItem::DataHandle::~DataHandle() {
14 }
15
13 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) : item_(item.Pass()) { 16 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item) : item_(item.Pass()) {
14 } 17 }
18
19 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
20 const scoped_refptr<DataHandle>& data_handle)
21 : item_(item.Pass()),
22 data_handle_(data_handle) {
23 }
24
25 BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
26 const scoped_refptr<DataHandle>& data_handle,
27 int disk_cache_stream_index)
28 : item_(item.Pass()),
29 data_handle_(data_handle),
30 disk_cache_stream_index_(disk_cache_stream_index) {
31 }
32
15 BlobDataItem::~BlobDataItem() { 33 BlobDataItem::~BlobDataItem() {
16 } 34 }
17 35
18 } // namespace storage 36 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698