| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 m_elements.append(FormDataElement(filename, 0, BlobDataItem::toEndOfFile, in
validFileTime())); | 129 m_elements.append(FormDataElement(filename, 0, BlobDataItem::toEndOfFile, in
validFileTime())); |
| 130 } | 130 } |
| 131 | 131 |
| 132 void EncodedFormData::appendFileRange(const String& filename, long long start, l
ong long length, double expectedModificationTime) | 132 void EncodedFormData::appendFileRange(const String& filename, long long start, l
ong long length, double expectedModificationTime) |
| 133 { | 133 { |
| 134 m_elements.append(FormDataElement(filename, start, length, expectedModificat
ionTime)); | 134 m_elements.append(FormDataElement(filename, start, length, expectedModificat
ionTime)); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void EncodedFormData::appendBlob(const String& uuid, PassRefPtr<BlobDataHandle>
optionalHandle) | 137 void EncodedFormData::appendBlob(const String& uuid, PassRefPtr<BlobDataHandle>
optionalHandle) |
| 138 { | 138 { |
| 139 m_elements.append(FormDataElement(uuid, optionalHandle)); | 139 m_elements.append(FormDataElement(uuid, std::move(optionalHandle))); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void EncodedFormData::appendFileSystemURL(const KURL& url) | 142 void EncodedFormData::appendFileSystemURL(const KURL& url) |
| 143 { | 143 { |
| 144 m_elements.append(FormDataElement(url, 0, BlobDataItem::toEndOfFile, invalid
FileTime())); | 144 m_elements.append(FormDataElement(url, 0, BlobDataItem::toEndOfFile, invalid
FileTime())); |
| 145 } | 145 } |
| 146 | 146 |
| 147 void EncodedFormData::appendFileSystemURLRange(const KURL& url, long long start,
long long length, double expectedModificationTime) | 147 void EncodedFormData::appendFileSystemURLRange(const KURL& url, long long start,
long long length, double expectedModificationTime) |
| 148 { | 148 { |
| 149 m_elements.append(FormDataElement(url, start, length, expectedModificationTi
me)); | 149 m_elements.append(FormDataElement(url, start, length, expectedModificationTi
me)); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 if (!hasOneRef()) | 198 if (!hasOneRef()) |
| 199 return false; | 199 return false; |
| 200 for (auto& element : m_elements) { | 200 for (auto& element : m_elements) { |
| 201 if (!element.isSafeToSendToAnotherThread()) | 201 if (!element.isSafeToSendToAnotherThread()) |
| 202 return false; | 202 return false; |
| 203 } | 203 } |
| 204 return true; | 204 return true; |
| 205 } | 205 } |
| 206 | 206 |
| 207 } // namespace blink | 207 } // namespace blink |
| OLD | NEW |