| 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 m_resourcesData->maybeDecodeDataToContent(requestId); | 457 m_resourcesData->maybeDecodeDataToContent(requestId); |
| 458 if (!monotonicFinishTime) | 458 if (!monotonicFinishTime) |
| 459 monotonicFinishTime = monotonicallyIncreasingTime(); | 459 monotonicFinishTime = monotonicallyIncreasingTime(); |
| 460 frontend()->loadingFinished(requestId, monotonicFinishTime, encodedDataLengt
h); | 460 frontend()->loadingFinished(requestId, monotonicFinishTime, encodedDataLengt
h); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void InspectorResourceAgent::didReceiveCORSRedirectResponse(LocalFrame* frame, u
nsigned long identifier, DocumentLoader* loader, const ResourceResponse& respons
e, ResourceLoader* resourceLoader) | 463 void InspectorResourceAgent::didReceiveCORSRedirectResponse(LocalFrame* frame, u
nsigned long identifier, DocumentLoader* loader, const ResourceResponse& respons
e, ResourceLoader* resourceLoader) |
| 464 { | 464 { |
| 465 // Update the response and finish loading | 465 // Update the response and finish loading |
| 466 didReceiveResourceResponse(frame, identifier, loader, response, resourceLoad
er); | 466 didReceiveResourceResponse(frame, identifier, loader, response, resourceLoad
er); |
| 467 didFinishLoading(identifier, 0, blink::WebURLLoaderClient::kUnknownEncodedDa
taLength); | 467 didFinishLoading(identifier, 0, WebURLLoaderClient::kUnknownEncodedDataLengt
h); |
| 468 } | 468 } |
| 469 | 469 |
| 470 void InspectorResourceAgent::didFailLoading(unsigned long identifier, const Reso
urceError& error) | 470 void InspectorResourceAgent::didFailLoading(unsigned long identifier, const Reso
urceError& error) |
| 471 { | 471 { |
| 472 String requestId = IdentifiersFactory::requestId(identifier); | 472 String requestId = IdentifiersFactory::requestId(identifier); |
| 473 bool canceled = error.isCancellation(); | 473 bool canceled = error.isCancellation(); |
| 474 frontend()->loadingFailed(requestId, monotonicallyIncreasingTime(), Inspecto
rPageAgent::resourceTypeJson(m_resourcesData->resourceType(requestId)), error.lo
calizedDescription(), canceled ? &canceled : 0); | 474 frontend()->loadingFailed(requestId, monotonicallyIncreasingTime(), Inspecto
rPageAgent::resourceTypeJson(m_resourcesData->resourceType(requestId)), error.lo
calizedDescription(), canceled ? &canceled : 0); |
| 475 } | 475 } |
| 476 | 476 |
| 477 void InspectorResourceAgent::scriptImported(unsigned long identifier, const Stri
ng& sourceString) | 477 void InspectorResourceAgent::scriptImported(unsigned long identifier, const Stri
ng& sourceString) |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) | 918 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) |
| 919 { | 919 { |
| 920 } | 920 } |
| 921 | 921 |
| 922 bool InspectorResourceAgent::shouldForceCORSPreflight() | 922 bool InspectorResourceAgent::shouldForceCORSPreflight() |
| 923 { | 923 { |
| 924 return m_state->getBoolean(ResourceAgentState::cacheDisabled); | 924 return m_state->getBoolean(ResourceAgentState::cacheDisabled); |
| 925 } | 925 } |
| 926 | 926 |
| 927 } // namespace blink | 927 } // namespace blink |
| OLD | NEW |