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