| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |