| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 } | 302 } |
| 303 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); | 303 ASSERT(!m_instrumentingAgents->inspectorResourceAgent()); |
| 304 #endif | 304 #endif |
| 305 } | 305 } |
| 306 | 306 |
| 307 DEFINE_TRACE(InspectorResourceAgent) | 307 DEFINE_TRACE(InspectorResourceAgent) |
| 308 { | 308 { |
| 309 visitor->trace(m_pageAgent); | 309 visitor->trace(m_pageAgent); |
| 310 visitor->trace(m_replayXHRs); | 310 visitor->trace(m_replayXHRs); |
| 311 visitor->trace(m_replayXHRsToBeDeleted); | 311 visitor->trace(m_replayXHRsToBeDeleted); |
| 312 | |
| 313 #if ENABLE(OILPAN) | |
| 314 visitor->trace(m_pendingXHRReplayData); | 312 visitor->trace(m_pendingXHRReplayData); |
| 315 #endif | |
| 316 InspectorBaseAgent::trace(visitor); | 313 InspectorBaseAgent::trace(visitor); |
| 317 } | 314 } |
| 318 | 315 |
| 319 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL
oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons
e, const FetchInitiatorInfo& initiatorInfo) | 316 void InspectorResourceAgent::willSendRequest(unsigned long identifier, DocumentL
oader* loader, ResourceRequest& request, const ResourceResponse& redirectRespons
e, const FetchInitiatorInfo& initiatorInfo) |
| 320 { | 317 { |
| 321 // Ignore the request initiated internally. | 318 // Ignore the request initiated internally. |
| 322 if (initiatorInfo.name == FetchInitiatorTypeNames::internal) | 319 if (initiatorInfo.name == FetchInitiatorTypeNames::internal) |
| 323 return; | 320 return; |
| 324 | 321 |
| 325 if (initiatorInfo.name == FetchInitiatorTypeNames::document && loader->subst
ituteData().isValid()) | 322 if (initiatorInfo.name == FetchInitiatorTypeNames::document && loader->subst
ituteData().isValid()) |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) | 952 , m_removeFinishedReplayXHRTimer(this, &InspectorResourceAgent::removeFinish
edReplayXHRFired) |
| 956 { | 953 { |
| 957 } | 954 } |
| 958 | 955 |
| 959 bool InspectorResourceAgent::shouldForceCORSPreflight() | 956 bool InspectorResourceAgent::shouldForceCORSPreflight() |
| 960 { | 957 { |
| 961 return m_state->getBoolean(ResourceAgentState::cacheDisabled); | 958 return m_state->getBoolean(ResourceAgentState::cacheDisabled); |
| 962 } | 959 } |
| 963 | 960 |
| 964 } // namespace blink | 961 } // namespace blink |
| OLD | NEW |