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

Side by Side Diff: storage/common/blob_storage/blob_item_bytes_request.h

Issue 1292523002: [BlobAsync] Patch 3: Renderer Classes & Logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async2
Patch Set: comments and test Created 5 years, 1 month 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_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_ 5 #ifndef STORAGE_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_
6 #define STORAGE_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_ 6 #define STORAGE_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <ostream> 9 #include <ostream>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 size_t renderer_item_index; 58 size_t renderer_item_index;
59 uint64_t renderer_item_offset; 59 uint64_t renderer_item_offset;
60 uint64_t size; 60 uint64_t size;
61 size_t handle_index; 61 size_t handle_index;
62 uint64_t handle_offset; 62 uint64_t handle_offset;
63 }; 63 };
64 64
65 STORAGE_COMMON_EXPORT void PrintTo(const BlobItemBytesRequest& request, 65 STORAGE_COMMON_EXPORT void PrintTo(const BlobItemBytesRequest& request,
66 std::ostream* os); 66 std::ostream* os);
67 67
68 #if defined(UNIT_TEST) 68 STORAGE_COMMON_EXPORT bool operator==(const BlobItemBytesRequest& a,
69 STORAGE_COMMON_EXPORT inline bool operator==(const BlobItemBytesRequest& a, 69 const BlobItemBytesRequest& b);
70 const BlobItemBytesRequest& b) {
71 return a.request_number == b.request_number &&
72 a.transport_strategy == b.transport_strategy &&
73 a.renderer_item_index == b.renderer_item_index &&
74 a.renderer_item_offset == b.renderer_item_offset && a.size == b.size &&
75 a.handle_index == b.handle_index && a.handle_offset == b.handle_offset;
76 }
77 70
78 STORAGE_COMMON_EXPORT inline bool operator!=(const BlobItemBytesRequest& a, 71 STORAGE_COMMON_EXPORT bool operator!=(const BlobItemBytesRequest& a,
79 const BlobItemBytesRequest& b) { 72 const BlobItemBytesRequest& b);
80 return !(a == b);
81 }
82 #endif // defined(UNIT_TEST)
83 73
84 } // namespace storage 74 } // namespace storage
85 75
86 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_ 76 #endif // STORAGE_COMMON_BLOB_STORAGE_BLOB_ITEM_BYTES_REQUEST_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_data_item.cc ('k') | storage/common/blob_storage/blob_item_bytes_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698