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

Unified Diff: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp

Issue 2389973004: reflow comments in platform/{network,peerconnection} (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
diff --git a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
index 23b7b83b3fab9c67be089058feb0bc170e922488..c0c7e5276834eca00186cdaffff41168690da4a6 100644
--- a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
+++ b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
@@ -4,7 +4,8 @@
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* (C) 2006 Alexey Proskuryakov (ap@nypop.com)
- * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
+ * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
+ * (http://www.torchmobile.com/)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -52,8 +53,9 @@ static inline void appendPercentEncoded(Vector<char>& buffer, unsigned char c) {
static void appendQuotedString(Vector<char>& buffer, const CString& string) {
// Append a string as a quoted value, escaping quotes and line breaks.
- // FIXME: Is it correct to use percent escaping here? Other browsers do not encode these characters yet,
- // so we should test popular servers to find out if there is an encoding form they can handle.
+ // FIXME: Is it correct to use percent escaping here? Other browsers do not
+ // encode these characters yet, so we should test popular servers to find out
+ // if there is an encoding form they can handle.
size_t length = string.length();
for (size_t i = 0; i < length; ++i) {
char c = string.data()[i];
@@ -139,8 +141,8 @@ void FormDataEncoder::beginMultiPartHeader(Vector<char>& buffer,
const CString& name) {
addBoundaryToMultiPartHeader(buffer, boundary);
- // FIXME: This loses data irreversibly if the input name includes characters you can't encode
- // in the website's character set.
+ // FIXME: This loses data irreversibly if the input name includes characters
+ // you can't encode in the website's character set.
append(buffer, "Content-Disposition: form-data; name=\"");
appendQuotedString(buffer, name);
append(buffer, '"');
@@ -162,8 +164,8 @@ void FormDataEncoder::addFilenameToMultiPartHeader(
Vector<char>& buffer,
const WTF::TextEncoding& encoding,
const String& filename) {
- // FIXME: This loses data irreversibly if the filename includes characters you can't encode
- // in the website's character set.
+ // FIXME: This loses data irreversibly if the filename includes characters you
+ // can't encode in the website's character set.
append(buffer, "; filename=\"");
appendQuotedString(
buffer, encoding.encode(filename, WTF::QuestionMarksForUnencodables));

Powered by Google App Engine
This is Rietveld 408576698