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: Source/core/inspector/NetworkResourcesData.cpp

Issue 29123004: Move core/platform/network to platform/network (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more file Created 7 years, 2 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 | Annotate | Revision Log
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 15 matching lines...) Expand all
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 "config.h" 29 #include "config.h"
30 #include "core/inspector/NetworkResourcesData.h" 30 #include "core/inspector/NetworkResourcesData.h"
31 31
32 #include "core/dom/DOMImplementation.h" 32 #include "core/dom/DOMImplementation.h"
33 #include "core/fetch/Resource.h" 33 #include "core/fetch/Resource.h"
34 #include "core/fetch/TextResourceDecoder.h" 34 #include "core/fetch/TextResourceDecoder.h"
35 #include "platform/SharedBuffer.h" 35 #include "platform/SharedBuffer.h"
36 #include "core/platform/network/ResourceResponse.h" 36 #include "platform/network/ResourceResponse.h"
37 37
38 namespace { 38 namespace {
39 // 100MB 39 // 100MB
40 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; 40 static size_t maximumResourcesContentSize = 100 * 1000 * 1000;
41 41
42 // 10MB 42 // 10MB
43 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; 43 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000;
44 } 44 }
45 45
46 namespace WebCore { 46 namespace WebCore {
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 String requestId = m_requestIdsDeque.takeFirst(); 389 String requestId = m_requestIdsDeque.takeFirst();
390 ResourceData* resourceData = resourceDataForRequestId(requestId); 390 ResourceData* resourceData = resourceDataForRequestId(requestId);
391 if (resourceData) 391 if (resourceData)
392 m_contentSize -= resourceData->evictContent(); 392 m_contentSize -= resourceData->evictContent();
393 } 393 }
394 return true; 394 return true;
395 } 395 }
396 396
397 } // namespace WebCore 397 } // namespace WebCore
398 398
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTimelineAgent.cpp ('k') | Source/core/inspector/TimelineRecordFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698