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

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

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) 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 const AtomicString& contentType, 148 const AtomicString& contentType,
149 HTMLFormElement* form, 149 HTMLFormElement* form,
150 PassRefPtr<EncodedFormData> data, 150 PassRefPtr<EncodedFormData> data,
151 const String& boundary, 151 const String& boundary,
152 Event* event) 152 Event* event)
153 : m_method(method), 153 : m_method(method),
154 m_action(action), 154 m_action(action),
155 m_target(target), 155 m_target(target),
156 m_contentType(contentType), 156 m_contentType(contentType),
157 m_form(form), 157 m_form(form),
158 m_formData(data), 158 m_formData(std::move(data)),
159 m_boundary(boundary), 159 m_boundary(boundary),
160 m_event(event) {} 160 m_event(event) {}
161 161
162 inline FormSubmission::FormSubmission(const String& result) 162 inline FormSubmission::FormSubmission(const String& result)
163 : m_method(DialogMethod), m_result(result) {} 163 : m_method(DialogMethod), m_result(result) {}
164 164
165 FormSubmission* FormSubmission::create(HTMLFormElement* form, 165 FormSubmission* FormSubmission::create(HTMLFormElement* form,
166 const Attributes& attributes, 166 const Attributes& attributes,
167 Event* event, 167 Event* event,
168 HTMLFormControlElement* submitButton) { 168 HTMLFormControlElement* submitButton) {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 306
307 frameRequest.resourceRequest().setURL(requestURL()); 307 frameRequest.resourceRequest().setURL(requestURL());
308 308
309 frameRequest.setTriggeringEvent(m_event); 309 frameRequest.setTriggeringEvent(m_event);
310 frameRequest.setForm(m_form); 310 frameRequest.setForm(m_form);
311 311
312 return frameRequest; 312 return frameRequest;
313 } 313 }
314 314
315 } // namespace blink 315 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698