| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 PendingXHRReplayDataMap::iterator it = m_pendingXHRReplayData.find(client); | 440 PendingXHRReplayDataMap::iterator it = m_pendingXHRReplayData.find(client); |
| 441 if (it == m_pendingXHRReplayData.end()) | 441 if (it == m_pendingXHRReplayData.end()) |
| 442 return; | 442 return; |
| 443 | 443 |
| 444 XHRReplayData* xhrReplayData = it->value.get(); | 444 XHRReplayData* xhrReplayData = it->value.get(); |
| 445 String requestId = IdentifiersFactory::requestId(identifier); | 445 String requestId = IdentifiersFactory::requestId(identifier); |
| 446 m_resourcesData->setXHRReplayData(requestId, xhrReplayData); | 446 m_resourcesData->setXHRReplayData(requestId, xhrReplayData); |
| 447 } | 447 } |
| 448 | 448 |
| 449 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient* client, const AtomicString& method, const KURL& url, bool async, PassRefPt
r<FormData> formData, const HTTPHeaderMap& headers, bool includeCredentials) | 449 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderCl
ient* client, const AtomicString& method, const KURL& url, bool async, FormData*
formData, const HTTPHeaderMap& headers, bool includeCredentials) |
| 450 { | 450 { |
| 451 ASSERT(xhr); | 451 ASSERT(xhr); |
| 452 RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(xhr->executionCo
ntext(), method, urlWithoutFragment(url), async, formData, includeCredentials); | 452 RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(xhr->executionCo
ntext(), method, urlWithoutFragment(url), async, formData, includeCredentials); |
| 453 HTTPHeaderMap::const_iterator end = headers.end(); | 453 HTTPHeaderMap::const_iterator end = headers.end(); |
| 454 for (HTTPHeaderMap::const_iterator it = headers.begin(); it!= end; ++it) | 454 for (HTTPHeaderMap::const_iterator it = headers.begin(); it!= end; ++it) |
| 455 xhrReplayData->addHeader(it->key, it->value); | 455 xhrReplayData->addHeader(it->key, it->value); |
| 456 m_pendingXHRReplayData.set(client, xhrReplayData); | 456 m_pendingXHRReplayData.set(client, xhrReplayData); |
| 457 } | 457 } |
| 458 | 458 |
| 459 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest*, ThreadableLoader
Client* client) | 459 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest*, ThreadableLoader
Client* client) |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 : InspectorBaseAgent<InspectorResourceAgent>("Network") | 810 : InspectorBaseAgent<InspectorResourceAgent>("Network") |
| 811 , m_pageAgent(pageAgent) | 811 , m_pageAgent(pageAgent) |
| 812 , m_client(client) | 812 , m_client(client) |
| 813 , m_frontend(0) | 813 , m_frontend(0) |
| 814 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 814 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
| 815 , m_isRecalculatingStyle(false) | 815 , m_isRecalculatingStyle(false) |
| 816 { | 816 { |
| 817 } | 817 } |
| 818 | 818 |
| 819 } // namespace WebCore | 819 } // namespace WebCore |
| OLD | NEW |