| 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "core/inspector/InspectorNetworkAgent.h" | 31 #include "core/inspector/InspectorNetworkAgent.h" |
| 32 | 32 |
| 33 #include "bindings/core/v8/ExceptionState.h" | 33 #include "bindings/core/v8/ExceptionState.h" |
| 34 #include "bindings/core/v8/SourceLocation.h" | 34 #include "bindings/core/v8/SourceLocation.h" |
| 35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 36 #include "core/dom/ScriptableDocumentParser.h" | 36 #include "core/dom/ScriptableDocumentParser.h" |
| 37 #include "core/dom/TaskRunnerHelper.h" |
| 37 #include "core/fetch/FetchInitiatorInfo.h" | 38 #include "core/fetch/FetchInitiatorInfo.h" |
| 38 #include "core/fetch/FetchInitiatorTypeNames.h" | 39 #include "core/fetch/FetchInitiatorTypeNames.h" |
| 39 #include "core/fetch/MemoryCache.h" | 40 #include "core/fetch/MemoryCache.h" |
| 40 #include "core/fetch/Resource.h" | 41 #include "core/fetch/Resource.h" |
| 41 #include "core/fetch/ResourceFetcher.h" | 42 #include "core/fetch/ResourceFetcher.h" |
| 42 #include "core/fetch/UniqueIdentifier.h" | 43 #include "core/fetch/UniqueIdentifier.h" |
| 43 #include "core/fileapi/FileReaderLoader.h" | 44 #include "core/fileapi/FileReaderLoader.h" |
| 44 #include "core/fileapi/FileReaderLoaderClient.h" | 45 #include "core/fileapi/FileReaderLoaderClient.h" |
| 45 #include "core/frame/FrameConsole.h" | 46 #include "core/frame/FrameConsole.h" |
| 46 #include "core/frame/FrameHost.h" | 47 #include "core/frame/FrameHost.h" |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 m_replayXHRsToBeDeleted.clear(); | 1525 m_replayXHRsToBeDeleted.clear(); |
| 1525 } | 1526 } |
| 1526 | 1527 |
| 1527 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) | 1528 InspectorNetworkAgent::InspectorNetworkAgent(InspectedFrames* inspectedFrames) |
| 1528 : m_inspectedFrames(inspectedFrames), | 1529 : m_inspectedFrames(inspectedFrames), |
| 1529 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, | 1530 m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, |
| 1530 maximumResourceBufferSize)), | 1531 maximumResourceBufferSize)), |
| 1531 m_pendingRequest(nullptr), | 1532 m_pendingRequest(nullptr), |
| 1532 m_isRecalculatingStyle(false), | 1533 m_isRecalculatingStyle(false), |
| 1533 m_removeFinishedReplayXHRTimer( | 1534 m_removeFinishedReplayXHRTimer( |
| 1535 TaskRunnerHelper::get(TaskType::UnspecedLoading, |
| 1536 inspectedFrames->root()), |
| 1534 this, | 1537 this, |
| 1535 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} | 1538 &InspectorNetworkAgent::removeFinishedReplayXHRFired) {} |
| 1536 | 1539 |
| 1537 bool InspectorNetworkAgent::shouldForceCORSPreflight() { | 1540 bool InspectorNetworkAgent::shouldForceCORSPreflight() { |
| 1538 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); | 1541 return m_state->booleanProperty(NetworkAgentState::cacheDisabled, false); |
| 1539 } | 1542 } |
| 1540 | 1543 |
| 1541 } // namespace blink | 1544 } // namespace blink |
| OLD | NEW |