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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "core/inspector/InspectedFrames.h" | 52 #include "core/inspector/InspectedFrames.h" |
53 #include "core/inspector/InspectorInstrumentation.h" | 53 #include "core/inspector/InspectorInstrumentation.h" |
54 #include "core/inspector/NetworkResourcesData.h" | 54 #include "core/inspector/NetworkResourcesData.h" |
55 #include "core/loader/DocumentLoader.h" | 55 #include "core/loader/DocumentLoader.h" |
56 #include "core/loader/FrameLoader.h" | 56 #include "core/loader/FrameLoader.h" |
57 #include "core/loader/MixedContentChecker.h" | 57 #include "core/loader/MixedContentChecker.h" |
58 #include "core/loader/ThreadableLoaderClient.h" | 58 #include "core/loader/ThreadableLoaderClient.h" |
59 #include "core/page/Page.h" | 59 #include "core/page/Page.h" |
60 #include "core/xmlhttprequest/XMLHttpRequest.h" | 60 #include "core/xmlhttprequest/XMLHttpRequest.h" |
61 #include "platform/blob/BlobData.h" | 61 #include "platform/blob/BlobData.h" |
62 #include "platform/inspector_protocol/Frontend.h" | |
63 #include "platform/inspector_protocol/Values.h" | 62 #include "platform/inspector_protocol/Values.h" |
64 #include "platform/network/HTTPHeaderMap.h" | 63 #include "platform/network/HTTPHeaderMap.h" |
65 #include "platform/network/ResourceError.h" | 64 #include "platform/network/ResourceError.h" |
66 #include "platform/network/ResourceLoadTiming.h" | 65 #include "platform/network/ResourceLoadTiming.h" |
67 #include "platform/network/ResourceRequest.h" | 66 #include "platform/network/ResourceRequest.h" |
68 #include "platform/network/ResourceResponse.h" | 67 #include "platform/network/ResourceResponse.h" |
69 #include "platform/network/WebSocketHandshakeRequest.h" | 68 #include "platform/network/WebSocketHandshakeRequest.h" |
70 #include "platform/network/WebSocketHandshakeResponse.h" | 69 #include "platform/network/WebSocketHandshakeResponse.h" |
71 #include "platform/weborigin/KURL.h" | 70 #include "platform/weborigin/KURL.h" |
72 #include "public/platform/WebCachePolicy.h" | 71 #include "public/platform/WebCachePolicy.h" |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 } | 1105 } |
1107 return false; | 1106 return false; |
1108 } | 1107 } |
1109 | 1108 |
1110 void InspectorResourceAgent::removeFinishedReplayXHRFired(Timer<InspectorResourc
eAgent>*) | 1109 void InspectorResourceAgent::removeFinishedReplayXHRFired(Timer<InspectorResourc
eAgent>*) |
1111 { | 1110 { |
1112 m_replayXHRsToBeDeleted.clear(); | 1111 m_replayXHRsToBeDeleted.clear(); |
1113 } | 1112 } |
1114 | 1113 |
1115 InspectorResourceAgent::InspectorResourceAgent(InspectedFrames* inspectedFrames) | 1114 InspectorResourceAgent::InspectorResourceAgent(InspectedFrames* inspectedFrames) |
1116 : InspectorBaseAgent<InspectorResourceAgent, protocol::Network::Frontend>("N
etwork") | 1115 : m_inspectedFrames(inspectedFrames) |
1117 , m_inspectedFrames(inspectedFrames) | |
1118 , m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, maxim
umResourceBufferSize)) | 1116 , m_resourcesData(NetworkResourcesData::create(maximumTotalBufferSize, maxim
umResourceBufferSize)) |
1119 , m_pendingRequest(nullptr) | 1117 , m_pendingRequest(nullptr) |
1120 , m_isRecalculatingStyle(false) | 1118 , m_isRecalculatingStyle(false) |
1121 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) | 1119 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) |
1122 { | 1120 { |
1123 } | 1121 } |
1124 | 1122 |
1125 bool InspectorResourceAgent::shouldForceCORSPreflight() | 1123 bool InspectorResourceAgent::shouldForceCORSPreflight() |
1126 { | 1124 { |
1127 return m_state->booleanProperty(ResourceAgentState::cacheDisabled, false); | 1125 return m_state->booleanProperty(ResourceAgentState::cacheDisabled, false); |
1128 } | 1126 } |
1129 | 1127 |
1130 } // namespace blink | 1128 } // namespace blink |
OLD | NEW |