| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |