| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 String actualRequestId = requestId; | 649 String actualRequestId = requestId; |
| 650 | 650 |
| 651 XHRReplayData* xhrReplayData = m_resourcesData->xhrReplayData(requestId); | 651 XHRReplayData* xhrReplayData = m_resourcesData->xhrReplayData(requestId); |
| 652 if (!xhrReplayData) | 652 if (!xhrReplayData) |
| 653 return; | 653 return; |
| 654 | 654 |
| 655 Resource* cachedResource = memoryCache()->resourceForURL(xhrReplayData->url(
)); | 655 Resource* cachedResource = memoryCache()->resourceForURL(xhrReplayData->url(
)); |
| 656 if (cachedResource) | 656 if (cachedResource) |
| 657 memoryCache()->remove(cachedResource); | 657 memoryCache()->remove(cachedResource); |
| 658 | 658 |
| 659 xhr->open(xhrReplayData->method(), xhrReplayData->url(), xhrReplayData->asyn
c(), IGNORE_EXCEPTION_STATE); | 659 xhr->open(xhrReplayData->method(), xhrReplayData->url(), xhrReplayData->asyn
c(), IGNORE_EXCEPTION); |
| 660 HTTPHeaderMap::const_iterator end = xhrReplayData->headers().end(); | 660 HTTPHeaderMap::const_iterator end = xhrReplayData->headers().end(); |
| 661 for (HTTPHeaderMap::const_iterator it = xhrReplayData->headers().begin(); it
!= end; ++it) | 661 for (HTTPHeaderMap::const_iterator it = xhrReplayData->headers().begin(); it
!= end; ++it) |
| 662 xhr->setRequestHeader(it->key, it->value, IGNORE_EXCEPTION_STATE); | 662 xhr->setRequestHeader(it->key, it->value, IGNORE_EXCEPTION); |
| 663 xhr->sendForInspectorXHRReplay(xhrReplayData->formData(), IGNORE_EXCEPTION_S
TATE); | 663 xhr->sendForInspectorXHRReplay(xhrReplayData->formData(), IGNORE_EXCEPTION); |
| 664 } | 664 } |
| 665 | 665 |
| 666 void InspectorResourceAgent::canClearBrowserCache(ErrorString*, bool* result) | 666 void InspectorResourceAgent::canClearBrowserCache(ErrorString*, bool* result) |
| 667 { | 667 { |
| 668 *result = true; | 668 *result = true; |
| 669 } | 669 } |
| 670 | 670 |
| 671 void InspectorResourceAgent::clearBrowserCache(ErrorString*) | 671 void InspectorResourceAgent::clearBrowserCache(ErrorString*) |
| 672 { | 672 { |
| 673 m_client->clearBrowserCache(); | 673 m_client->clearBrowserCache(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 , m_overlay(overlay) | 759 , m_overlay(overlay) |
| 760 , m_frontend(0) | 760 , m_frontend(0) |
| 761 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 761 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
| 762 , m_loadingXHRSynchronously(false) | 762 , m_loadingXHRSynchronously(false) |
| 763 , m_isRecalculatingStyle(false) | 763 , m_isRecalculatingStyle(false) |
| 764 { | 764 { |
| 765 } | 765 } |
| 766 | 766 |
| 767 } // namespace WebCore | 767 } // namespace WebCore |
| 768 | 768 |
| OLD | NEW |