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

Side by Side Diff: storage/browser/blob/blob_data_snapshot.h

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 4 years, 9 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 #ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 const std::string& content_disposition() const { 37 const std::string& content_disposition() const {
38 return content_disposition_; 38 return content_disposition_;
39 } 39 }
40 size_t GetMemoryUsage() const; 40 size_t GetMemoryUsage() const;
41 41
42 const std::string& uuid() const { return uuid_; } 42 const std::string& uuid() const { return uuid_; }
43 43
44 private: 44 private:
45 friend class BlobDataBuilder; 45 friend class BlobDataBuilder;
46 friend class BlobStorageContext; 46 friend class BlobStorageContext;
47 friend STORAGE_EXPORT void PrintTo(const BlobDataSnapshot& x,
48 ::std::ostream* os);
47 BlobDataSnapshot(const std::string& uuid, 49 BlobDataSnapshot(const std::string& uuid,
48 const std::string& content_type, 50 const std::string& content_type,
49 const std::string& content_disposition); 51 const std::string& content_disposition);
50 BlobDataSnapshot(const std::string& uuid, 52 BlobDataSnapshot(const std::string& uuid,
51 const std::string& content_type, 53 const std::string& content_type,
52 const std::string& content_disposition, 54 const std::string& content_disposition,
53 const std::vector<scoped_refptr<BlobDataItem>>& items); 55 const std::vector<scoped_refptr<BlobDataItem>>& items);
54 56
55 const std::string uuid_; 57 const std::string uuid_;
56 const std::string content_type_; 58 const std::string content_type_;
57 const std::string content_disposition_; 59 const std::string content_disposition_;
58 60
59 // Non-const for constrution in BlobStorageContext 61 // Non-const for constrution in BlobStorageContext
60 std::vector<scoped_refptr<BlobDataItem>> items_; 62 std::vector<scoped_refptr<BlobDataItem>> items_;
61 }; 63 };
62 64
63 } // namespace storage 65 } // namespace storage
64 #endif // STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_ 66 #endif // STORAGE_BROWSER_BLOB_BLOB_DATA_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698