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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 if (headers) { | 306 if (headers) { |
307 JSONObject::const_iterator end = headers->end(); | 307 JSONObject::const_iterator end = headers->end(); |
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); | |
316 request.setReportRawHeaders(true); | 315 request.setReportRawHeaders(true); |
317 | 316 |
318 if (m_state->getBoolean(ResourceAgentState::cacheDisabled)) | 317 if (m_state->getBoolean(ResourceAgentState::cacheDisabled)) |
319 request.setCachePolicy(ReloadBypassingCache); | 318 request.setCachePolicy(ReloadBypassingCache); |
320 | 319 |
321 String frameId = m_pageAgent->frameId(loader->frame()); | 320 String frameId = m_pageAgent->frameId(loader->frame()); |
322 | 321 |
323 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = buildInitiatorObje
ct(loader->frame() ? loader->frame()->document() : 0, initiatorInfo); | 322 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = buildInitiatorObje
ct(loader->frame() ? loader->frame()->document() : 0, initiatorInfo); |
324 if (initiatorInfo.name == FetchInitiatorTypeNames::document) { | 323 if (initiatorInfo.name == FetchInitiatorTypeNames::document) { |
325 FrameNavigationInitiatorMap::iterator it = m_frameNavigationInitiatorMap
.find(frameId); | 324 FrameNavigationInitiatorMap::iterator it = m_frameNavigationInitiatorMap
.find(frameId); |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) | 817 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) |
819 : InspectorBaseAgent<InspectorResourceAgent>("Network") | 818 : InspectorBaseAgent<InspectorResourceAgent>("Network") |
820 , m_pageAgent(pageAgent) | 819 , m_pageAgent(pageAgent) |
821 , m_frontend(0) | 820 , m_frontend(0) |
822 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 821 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
823 , m_isRecalculatingStyle(false) | 822 , m_isRecalculatingStyle(false) |
824 { | 823 { |
825 } | 824 } |
826 | 825 |
827 } // namespace WebCore | 826 } // namespace WebCore |
OLD | NEW |