| 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 #include <algorithm> |
| 5 #include <string> | 6 #include <string> |
| 6 | 7 |
| 7 #include "content/child/blob_storage/blob_consolidation.h" | 8 #include "content/child/blob_storage/blob_consolidation.h" |
| 8 | 9 |
| 9 using storage::DataElement; | 10 using storage::DataElement; |
| 10 using blink::WebThreadSafeData; | 11 using blink::WebThreadSafeData; |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 | 14 |
| 14 using ReadStatus = BlobConsolidation::ReadStatus; | 15 using ReadStatus = BlobConsolidation::ReadStatus; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 consolidated_size - memory_read); | 151 consolidated_size - memory_read); |
| 151 memcpy(static_cast<char*>(memory_out) + memory_read, | 152 memcpy(static_cast<char*>(memory_out) + memory_read, |
| 152 item.data[mid].data() + offset_from_mid, read_size); | 153 item.data[mid].data() + offset_from_mid, read_size); |
| 153 offset_from_mid = 0; | 154 offset_from_mid = 0; |
| 154 memory_read += read_size; | 155 memory_read += read_size; |
| 155 } | 156 } |
| 156 return ReadStatus::OK; | 157 return ReadStatus::OK; |
| 157 } | 158 } |
| 158 | 159 |
| 159 } // namespace content | 160 } // namespace content |
| OLD | NEW |