Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 11 matching lines...) Expand all
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "core/inspector/NetworkResourcesData.h" 29 #include "core/inspector/NetworkResourcesData.h"
30 30
31 #include "core/dom/DOMImplementation.h" 31 #include "core/dom/DOMImplementation.h"
32 #include "core/fetch/Resource.h"
33 #include "platform/SharedBuffer.h" 32 #include "platform/SharedBuffer.h"
33 #include "platform/loader/fetch/Resource.h"
34 #include "platform/network/ResourceResponse.h" 34 #include "platform/network/ResourceResponse.h"
35 #include <memory> 35 #include <memory>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 static bool isErrorStatusCode(int statusCode) { 39 static bool isErrorStatusCode(int statusCode) {
40 return statusCode >= 400; 40 return statusCode >= 400;
41 } 41 }
42 42
43 XHRReplayData* XHRReplayData::create(ExecutionContext* executionContext, 43 XHRReplayData* XHRReplayData::create(ExecutionContext* executionContext,
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 while (size > m_maximumResourcesContentSize - m_contentSize) { 425 while (size > m_maximumResourcesContentSize - m_contentSize) {
426 String requestId = m_requestIdsDeque.takeFirst(); 426 String requestId = m_requestIdsDeque.takeFirst();
427 ResourceData* resourceData = resourceDataForRequestId(requestId); 427 ResourceData* resourceData = resourceDataForRequestId(requestId);
428 if (resourceData) 428 if (resourceData)
429 m_contentSize -= resourceData->evictContent(); 429 m_contentSize -= resourceData->evictContent();
430 } 430 }
431 return true; 431 return true;
432 } 432 }
433 433
434 } // namespace blink 434 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698