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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 for (JSONObject::const_iterator it = headers->begin(); it != end; ++it)
{ | 308 for (JSONObject::const_iterator it = headers->begin(); it != end; ++it)
{ |
309 String value; | 309 String value; |
310 if (it->value->asString(&value)) | 310 if (it->value->asString(&value)) |
311 request.setHTTPHeaderField(AtomicString(it->key), AtomicString(v
alue)); | 311 request.setHTTPHeaderField(AtomicString(it->key), AtomicString(v
alue)); |
312 } | 312 } |
313 } | 313 } |
314 | 314 |
315 request.setReportLoadTiming(true); | 315 request.setReportLoadTiming(true); |
316 request.setReportRawHeaders(true); | 316 request.setReportRawHeaders(true); |
317 | 317 |
318 if (m_state->getBoolean(ResourceAgentState::cacheDisabled)) { | 318 if (m_state->getBoolean(ResourceAgentState::cacheDisabled)) |
319 request.setHTTPHeaderField("Pragma", "no-cache"); | 319 request.setCachePolicy(ReloadBypassingCache); |
320 request.setCachePolicy(ReloadIgnoringCacheData); | |
321 request.setHTTPHeaderField("Cache-Control", "no-cache"); | |
322 } | |
323 | 320 |
324 String frameId = m_pageAgent->frameId(loader->frame()); | 321 String frameId = m_pageAgent->frameId(loader->frame()); |
325 | 322 |
326 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = buildInitiatorObje
ct(loader->frame() ? loader->frame()->document() : 0, initiatorInfo); | 323 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = buildInitiatorObje
ct(loader->frame() ? loader->frame()->document() : 0, initiatorInfo); |
327 if (initiatorInfo.name == FetchInitiatorTypeNames::document) { | 324 if (initiatorInfo.name == FetchInitiatorTypeNames::document) { |
328 FrameNavigationInitiatorMap::iterator it = m_frameNavigationInitiatorMap
.find(frameId); | 325 FrameNavigationInitiatorMap::iterator it = m_frameNavigationInitiatorMap
.find(frameId); |
329 if (it != m_frameNavigationInitiatorMap.end()) | 326 if (it != m_frameNavigationInitiatorMap.end()) |
330 initiatorObject = it->value; | 327 initiatorObject = it->value; |
331 } | 328 } |
332 | 329 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) | 818 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) |
822 : InspectorBaseAgent<InspectorResourceAgent>("Network") | 819 : InspectorBaseAgent<InspectorResourceAgent>("Network") |
823 , m_pageAgent(pageAgent) | 820 , m_pageAgent(pageAgent) |
824 , m_frontend(0) | 821 , m_frontend(0) |
825 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 822 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
826 , m_isRecalculatingStyle(false) | 823 , m_isRecalculatingStyle(false) |
827 { | 824 { |
828 } | 825 } |
829 | 826 |
830 } // namespace WebCore | 827 } // namespace WebCore |
OLD | NEW |