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

Side by Side Diff: third_party/WebKit/Source/platform/network/EncodedFormData.h

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 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 /* 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 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 double expectedFileModificationTime) 46 double expectedFileModificationTime)
47 : m_type(encodedFile), 47 : m_type(encodedFile),
48 m_filename(filename), 48 m_filename(filename),
49 m_fileStart(fileStart), 49 m_fileStart(fileStart),
50 m_fileLength(fileLength), 50 m_fileLength(fileLength),
51 m_expectedFileModificationTime(expectedFileModificationTime) {} 51 m_expectedFileModificationTime(expectedFileModificationTime) {}
52 explicit FormDataElement(const String& blobUUID, 52 explicit FormDataElement(const String& blobUUID,
53 PassRefPtr<BlobDataHandle> optionalHandle) 53 PassRefPtr<BlobDataHandle> optionalHandle)
54 : m_type(encodedBlob), 54 : m_type(encodedBlob),
55 m_blobUUID(blobUUID), 55 m_blobUUID(blobUUID),
56 m_optionalBlobDataHandle(optionalHandle) {} 56 m_optionalBlobDataHandle(std::move(optionalHandle)) {}
57 FormDataElement(const KURL& fileSystemURL, 57 FormDataElement(const KURL& fileSystemURL,
58 long long start, 58 long long start,
59 long long length, 59 long long length,
60 double expectedFileModificationTime) 60 double expectedFileModificationTime)
61 : m_type(encodedFileSystemURL), 61 : m_type(encodedFileSystemURL),
62 m_fileSystemURL(fileSystemURL), 62 m_fileSystemURL(fileSystemURL),
63 m_fileStart(start), 63 m_fileStart(start),
64 m_fileLength(length), 64 m_fileLength(length),
65 m_expectedFileModificationTime(expectedFileModificationTime) {} 65 m_expectedFileModificationTime(expectedFileModificationTime) {}
66 66
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return a.elements() == b.elements(); 178 return a.elements() == b.elements();
179 } 179 }
180 180
181 inline bool operator!=(const EncodedFormData& a, const EncodedFormData& b) { 181 inline bool operator!=(const EncodedFormData& a, const EncodedFormData& b) {
182 return !(a == b); 182 return !(a == b);
183 } 183 }
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif 187 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698