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

Side by Side Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments Created 5 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 m_knownRequestIdMap.set(client, identifier); 609 m_knownRequestIdMap.set(client, identifier);
610 String requestId = IdentifiersFactory::requestId(identifier); 610 String requestId = IdentifiersFactory::requestId(identifier);
611 m_resourcesData->setResourceType(requestId, m_pendingRequestType); 611 m_resourcesData->setResourceType(requestId, m_pendingRequestType);
612 if (m_pendingRequestType == InspectorPageAgent::XHRResource) { 612 if (m_pendingRequestType == InspectorPageAgent::XHRResource) {
613 m_resourcesData->setXHRReplayData(requestId, m_pendingXHRReplayData.get( )); 613 m_resourcesData->setXHRReplayData(requestId, m_pendingXHRReplayData.get( ));
614 m_pendingXHRReplayData.clear(); 614 m_pendingXHRReplayData.clear();
615 } 615 }
616 m_pendingRequest = nullptr; 616 m_pendingRequest = nullptr;
617 } 617 }
618 618
619 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl ient* client, const AtomicString& method, const KURL& url, bool async, PassRefPt r<FormData> formData, const HTTPHeaderMap& headers, bool includeCredentials) 619 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl ient* client, const AtomicString& method, const KURL& url, bool async, PassRefPt r<EncodedFormData> formData, const HTTPHeaderMap& headers, bool includeCredentia ls)
620 { 620 {
621 ASSERT(xhr); 621 ASSERT(xhr);
622 ASSERT(!m_pendingRequest); 622 ASSERT(!m_pendingRequest);
623 m_pendingRequest = client; 623 m_pendingRequest = client;
624 m_pendingRequestType = InspectorPageAgent::XHRResource; 624 m_pendingRequestType = InspectorPageAgent::XHRResource;
625 m_pendingXHRReplayData = XHRReplayData::create(xhr->executionContext(), meth od, urlWithoutFragment(url), async, formData.get(), includeCredentials); 625 m_pendingXHRReplayData = XHRReplayData::create(xhr->executionContext(), meth od, urlWithoutFragment(url), async, formData.get(), includeCredentials);
626 for (const auto& header : headers) 626 for (const auto& header : headers)
627 m_pendingXHRReplayData->addHeader(header.key, header.value); 627 m_pendingXHRReplayData->addHeader(header.key, header.value);
628 } 628 }
629 629
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired) 1083 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired)
1084 { 1084 {
1085 } 1085 }
1086 1086
1087 bool InspectorResourceAgent::shouldForceCORSPreflight() 1087 bool InspectorResourceAgent::shouldForceCORSPreflight()
1088 { 1088 {
1089 return m_state->getBoolean(ResourceAgentState::cacheDisabled); 1089 return m_state->getBoolean(ResourceAgentState::cacheDisabled);
1090 } 1090 }
1091 1091
1092 } // namespace blink 1092 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.h ('k') | Source/core/inspector/NetworkResourcesData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698