| 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 * 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |