| 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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 | 432 |
| 433 PendingXHRReplayDataMap::iterator it = m_pendingXHRReplayData.find(client); | 433 PendingXHRReplayDataMap::iterator it = m_pendingXHRReplayData.find(client); |
| 434 if (it == m_pendingXHRReplayData.end()) | 434 if (it == m_pendingXHRReplayData.end()) |
| 435 return; | 435 return; |
| 436 | 436 |
| 437 XHRReplayData* xhrReplayData = it->value.get(); | 437 XHRReplayData* xhrReplayData = it->value.get(); |
| 438 String requestId = IdentifiersFactory::requestId(identifier); | 438 String requestId = IdentifiersFactory::requestId(identifier); |
| 439 m_resourcesData->setXHRReplayData(requestId, xhrReplayData); | 439 m_resourcesData->setXHRReplayData(requestId, xhrReplayData); |
| 440 } | 440 } |
| 441 | 441 |
| 442 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient
* client, const String& method, const KURL& url, bool async, PassRefPtr<FormData
> formData, const HTTPHeaderMap& headers, bool includeCredentials) | 442 void InspectorResourceAgent::willLoadXHR(XMLHttpRequest*, ThreadableLoaderClient
* client, const AtomicString& method, const KURL& url, bool async, PassRefPtr<Fo
rmData> formData, const HTTPHeaderMap& headers, bool includeCredentials) |
| 443 { | 443 { |
| 444 RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(method, urlWitho
utFragment(url), async, formData, includeCredentials); | 444 RefPtr<XHRReplayData> xhrReplayData = XHRReplayData::create(method, urlWitho
utFragment(url), async, formData, includeCredentials); |
| 445 HTTPHeaderMap::const_iterator end = headers.end(); | 445 HTTPHeaderMap::const_iterator end = headers.end(); |
| 446 for (HTTPHeaderMap::const_iterator it = headers.begin(); it!= end; ++it) | 446 for (HTTPHeaderMap::const_iterator it = headers.begin(); it!= end; ++it) |
| 447 xhrReplayData->addHeader(it->key, it->value); | 447 xhrReplayData->addHeader(it->key, it->value); |
| 448 m_pendingXHRReplayData.set(client, xhrReplayData); | 448 m_pendingXHRReplayData.set(client, xhrReplayData); |
| 449 } | 449 } |
| 450 | 450 |
| 451 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest*, ThreadableLoader
Client* client) | 451 void InspectorResourceAgent::didFailXHRLoading(XMLHttpRequest*, ThreadableLoader
Client* client) |
| 452 { | 452 { |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 : InspectorBaseAgent<InspectorResourceAgent>("Network", instrumentingAgents,
state) | 789 : InspectorBaseAgent<InspectorResourceAgent>("Network", instrumentingAgents,
state) |
| 790 , m_pageAgent(pageAgent) | 790 , m_pageAgent(pageAgent) |
| 791 , m_client(client) | 791 , m_client(client) |
| 792 , m_frontend(0) | 792 , m_frontend(0) |
| 793 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 793 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
| 794 , m_isRecalculatingStyle(false) | 794 , m_isRecalculatingStyle(false) |
| 795 { | 795 { |
| 796 } | 796 } |
| 797 | 797 |
| 798 } // namespace WebCore | 798 } // namespace WebCore |
| OLD | NEW |