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

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

Issue 415013003: Oilpan: Prepare moving XHRReplayData to Oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28 matching lines...) Expand all
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 blink { 46 namespace blink {
47 47
48 48
49 PassRefPtr<XHRReplayData> XHRReplayData::create(ExecutionContext* executionConte xt, const AtomicString& method, const KURL& url, bool async, PassRefPtr<FormData > formData, bool includeCredentials) 49 PassRefPtrWillBeRawPtr<XHRReplayData> XHRReplayData::create(ExecutionContext* ex ecutionContext, const AtomicString& method, const KURL& url, bool async, PassRef Ptr<FormData> formData, bool includeCredentials)
50 { 50 {
51 return adoptRef(new XHRReplayData(executionContext, method, url, async, form Data, includeCredentials)); 51 return adoptRefWillBeNoop(new XHRReplayData(executionContext, method, url, a sync, formData, includeCredentials));
52 } 52 }
53 53
54 void XHRReplayData::addHeader(const AtomicString& key, const AtomicString& value ) 54 void XHRReplayData::addHeader(const AtomicString& key, const AtomicString& value )
55 { 55 {
56 m_headers.set(key, value); 56 m_headers.set(key, value);
57 } 57 }
58 58
59 XHRReplayData::XHRReplayData(ExecutionContext* executionContext, const AtomicStr ing& method, const KURL& url, bool async, PassRefPtr<FormData> formData, bool in cludeCredentials) 59 XHRReplayData::XHRReplayData(ExecutionContext* executionContext, const AtomicStr ing& method, const KURL& url, bool async, PassRefPtr<FormData> formData, bool in cludeCredentials)
60 : ContextLifecycleObserver(executionContext) 60 : ContextLifecycleObserver(executionContext)
61 , m_method(method) 61 , m_method(method)
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 String requestId = m_requestIdsDeque.takeFirst(); 372 String requestId = m_requestIdsDeque.takeFirst();
373 ResourceData* resourceData = resourceDataForRequestId(requestId); 373 ResourceData* resourceData = resourceDataForRequestId(requestId);
374 if (resourceData) 374 if (resourceData)
375 m_contentSize -= resourceData->evictContent(); 375 m_contentSize -= resourceData->evictContent();
376 } 376 }
377 return true; 377 return true;
378 } 378 }
379 379
380 } // namespace blink 380 } // namespace blink
381 381
OLDNEW
« no previous file with comments | « Source/core/inspector/NetworkResourcesData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698