| 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 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 for (auto& resource : m_resourcesData->resources()) { | 1502 for (auto& resource : m_resourcesData->resources()) { |
| 1503 if (resource->requestedURL() == url) { | 1503 if (resource->requestedURL() == url) { |
| 1504 *content = resource->content(); | 1504 *content = resource->content(); |
| 1505 *base64Encoded = resource->base64Encoded(); | 1505 *base64Encoded = resource->base64Encoded(); |
| 1506 return true; | 1506 return true; |
| 1507 } | 1507 } |
| 1508 } | 1508 } |
| 1509 return false; | 1509 return false; |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 bool InspectorNetworkAgent::cacheDisabled() { |
| 1513 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); |
| 1514 } |
| 1515 |
| 1512 void InspectorNetworkAgent::removeFinishedReplayXHRFired(TimerBase*) { | 1516 void InspectorNetworkAgent::removeFinishedReplayXHRFired(TimerBase*) { |
| 1513 m_replayXHRsToBeDeleted.clear(); | 1517 m_replayXHRsToBeDeleted.clear(); |
| 1514 } | 1518 } |
| 1515 | 1519 |
| 1516 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) | 1520 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) |
| 1517 : m_inspectedFrames(inspectedFrames), | 1521 : m_inspectedFrames(inspectedFrames), |
| 1518 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, | 1522 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, |
| 1519 maximumResourceBufferSize)), | 1523 maximumResourceBufferSize)), |
| 1520 m_pendingRequest(nullptr), | 1524 m_pendingRequest(nullptr), |
| 1521 m_isRecalculatingStyle(false), | 1525 m_isRecalculatingStyle(false), |
| 1522 m_removeFinishedReplayXHRTimer( | 1526 m_removeFinishedReplayXHRTimer( |
| 1523 this, | 1527 this, |
| 1524 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} | 1528 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} |
| 1525 | 1529 |
| 1526 bool InspectorNetworkAgent::shouldForceCORSPreflight() { | 1530 bool InspectorNetworkAgent::shouldForceCORSPreflight() { |
| 1527 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); | 1531 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); |
| 1528 } | 1532 } |
| 1529 | 1533 |
| 1530 } // namespace blink | 1534 } // namespace blink |
| OLD | NEW |