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

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

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added back transport controller test, small cleanups Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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/shareable_blob_data_item.h" 5 #include "storage/browser/blob/shareable_blob_data_item.h"
6 6
7 #include "storage/browser/blob/blob_data_item.h" 7 #include "storage/browser/blob/blob_data_item.h"
8 8
9 namespace storage { 9 namespace storage {
10 10
11 ShareableBlobDataItem::ShareableBlobDataItem( 11 ShareableBlobDataItem::ShareableBlobDataItem(uint64_t item_id,
12 const std::string& blob_uuid, 12 scoped_refptr<BlobDataItem> item)
13 const scoped_refptr<BlobDataItem>& item) 13 : item_id_(item_id), item_(std::move(item)) {
14 : item_(item) {
15 DCHECK_NE(item_->type(), DataElement::TYPE_BLOB); 14 DCHECK_NE(item_->type(), DataElement::TYPE_BLOB);
16 referencing_blobs_.insert(blob_uuid);
17 } 15 }
18 16
19 ShareableBlobDataItem::~ShareableBlobDataItem() { 17 ShareableBlobDataItem::~ShareableBlobDataItem() {
20 } 18 }
21 19
22 const scoped_refptr<BlobDataItem>& ShareableBlobDataItem::item() { 20 const scoped_refptr<BlobDataItem>& ShareableBlobDataItem::item() {
23 return item_; 21 return item_;
24 } 22 }
25 23
26 } // namespace storage 24 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698