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

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

Issue 667393002: [XHR] No need to remember line number and URL on send() for inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 508
509 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest* xhr, ThreadableLo aderClient* client) 509 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest* xhr, ThreadableLo aderClient* client)
510 { 510 {
511 m_pendingXHRReplayData.remove(client); 511 m_pendingXHRReplayData.remove(client);
512 512
513 // This method will be called from the XHR. 513 // This method will be called from the XHR.
514 // We delay deleting the replay XHR, as deleting here may delete the caller. 514 // We delay deleting the replay XHR, as deleting here may delete the caller.
515 delayedRemoveReplayXHR(xhr); 515 delayedRemoveReplayXHR(xhr);
516 } 516 }
517 517
518 void InspectorResourceAgent::didFinishXHRLoading(XMLHttpRequest* xhr, Threadable LoaderClient* client, unsigned long identifier, ScriptString sourceString, const AtomicString&, const String&, const String&, unsigned) 518 void InspectorResourceAgent::didFinishXHRLoading(XMLHttpRequest* xhr, Threadable LoaderClient* client, unsigned long identifier, ScriptString sourceString, const AtomicString&, const String&)
519 { 519 {
520 m_pendingXHRReplayData.remove(client); 520 m_pendingXHRReplayData.remove(client);
521 521
522 // See comments on |didFailXHRLoading| for why we are delaying delete. 522 // See comments on |didFailXHRLoading| for why we are delaying delete.
523 delayedRemoveReplayXHR(xhr); 523 delayedRemoveReplayXHR(xhr);
524 } 524 }
525 525
526 void InspectorResourceAgent::willDestroyResource(Resource* cachedResource) 526 void InspectorResourceAgent::willDestroyResource(Resource* cachedResource)
527 { 527 {
528 Vector<String> requestIds = m_resourcesData->removeResource(cachedResource); 528 Vector<String> requestIds = m_resourcesData->removeResource(cachedResource);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired) 887 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish edReplayXHRFired)
888 { 888 {
889 } 889 }
890 890
891 bool InspectorResourceAgent::shouldForceCORSPreflight() 891 bool InspectorResourceAgent::shouldForceCORSPreflight()
892 { 892 {
893 return m_state->getBoolean(ResourceAgentState::cacheDisabled); 893 return m_state->getBoolean(ResourceAgentState::cacheDisabled);
894 } 894 }
895 895
896 } // namespace blink 896 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorResourceAgent.h ('k') | Source/core/xml/XMLHttpRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698