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

Side by Side Diff: Source/core/loader/FormSubmission.cpp

Issue 123003002: Make calls to AtomicString(const String&) explicit in loader/ and fetch/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 requestURL.setQuery(m_formData->flattenToString()); 252 requestURL.setQuery(m_formData->flattenToString());
253 return requestURL; 253 return requestURL;
254 } 254 }
255 255
256 void FormSubmission::populateFrameLoadRequest(FrameLoadRequest& frameRequest) 256 void FormSubmission::populateFrameLoadRequest(FrameLoadRequest& frameRequest)
257 { 257 {
258 if (!m_target.isEmpty()) 258 if (!m_target.isEmpty())
259 frameRequest.setFrameName(m_target); 259 frameRequest.setFrameName(m_target);
260 260
261 if (!m_referrer.isEmpty()) 261 if (!m_referrer.isEmpty())
262 frameRequest.resourceRequest().setHTTPReferrer(m_referrer); 262 frameRequest.resourceRequest().setHTTPReferrer(AtomicString(m_referrer)) ;
263 263
264 if (m_method == FormSubmission::PostMethod) { 264 if (m_method == FormSubmission::PostMethod) {
265 frameRequest.resourceRequest().setHTTPMethod("POST"); 265 frameRequest.resourceRequest().setHTTPMethod("POST");
266 frameRequest.resourceRequest().setHTTPBody(m_formData); 266 frameRequest.resourceRequest().setHTTPBody(m_formData);
267 267
268 // construct some user headers if necessary 268 // construct some user headers if necessary
269 if (m_boundary.isEmpty()) 269 if (m_boundary.isEmpty())
270 frameRequest.resourceRequest().setHTTPContentType(m_contentType); 270 frameRequest.resourceRequest().setHTTPContentType(AtomicString(m_con tentType));
eseidel 2013/12/31 22:05:03 content types should probably be stored as AtomicS
Inactive 2013/12/31 22:47:25 Done.
271 else 271 else
272 frameRequest.resourceRequest().setHTTPContentType(m_contentType + "; boundary=" + m_boundary); 272 frameRequest.resourceRequest().setHTTPContentType(m_contentType + "; boundary=" + m_boundary);
273 } 273 }
274 274
275 frameRequest.resourceRequest().setURL(requestURL()); 275 frameRequest.resourceRequest().setURL(requestURL());
276 FrameLoader::addHTTPOriginIfNeeded(frameRequest.resourceRequest(), m_origin) ; 276 FrameLoader::addHTTPOriginIfNeeded(frameRequest.resourceRequest(), AtomicStr ing(m_origin));
277 } 277 }
278 278
279 } 279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698