| 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 27 matching lines...) Expand all Loading... |
| 38 // 100MB | 38 // 100MB |
| 39 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; | 39 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; |
| 40 | 40 |
| 41 // 10MB | 41 // 10MB |
| 42 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; | 42 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 | 47 |
| 48 PassRefPtr<XHRReplayData> XHRReplayData::create(const String &method, const KURL
& url, bool async, PassRefPtr<FormData> formData, bool includeCredentials) | 48 PassRefPtr<XHRReplayData> XHRReplayData::create(const AtomicString& method, cons
t KURL& url, bool async, PassRefPtr<FormData> formData, bool includeCredentials) |
| 49 { | 49 { |
| 50 return adoptRef(new XHRReplayData(method, url, async, formData, includeCrede
ntials)); | 50 return adoptRef(new XHRReplayData(method, url, async, formData, includeCrede
ntials)); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void XHRReplayData::addHeader(const AtomicString& key, const String& value) | 53 void XHRReplayData::addHeader(const AtomicString& key, const AtomicString& value
) |
| 54 { | 54 { |
| 55 m_headers.set(key, value); | 55 m_headers.set(key, value); |
| 56 } | 56 } |
| 57 | 57 |
| 58 XHRReplayData::XHRReplayData(const String &method, const KURL& url, bool async,
PassRefPtr<FormData> formData, bool includeCredentials) | 58 XHRReplayData::XHRReplayData(const AtomicString& method, const KURL& url, bool a
sync, PassRefPtr<FormData> formData, bool includeCredentials) |
| 59 : m_method(method) | 59 : m_method(method) |
| 60 , m_url(url) | 60 , m_url(url) |
| 61 , m_async(async) | 61 , m_async(async) |
| 62 , m_formData(formData) | 62 , m_formData(formData) |
| 63 , m_includeCredentials(includeCredentials) | 63 , m_includeCredentials(includeCredentials) |
| 64 { | 64 { |
| 65 } | 65 } |
| 66 | 66 |
| 67 // ResourceData | 67 // ResourceData |
| 68 NetworkResourcesData::ResourceData::ResourceData(const String& requestId, const
String& loaderId) | 68 NetworkResourcesData::ResourceData::ResourceData(const String& requestId, const
String& loaderId) |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 String requestId = m_requestIdsDeque.takeFirst(); | 388 String requestId = m_requestIdsDeque.takeFirst(); |
| 389 ResourceData* resourceData = resourceDataForRequestId(requestId); | 389 ResourceData* resourceData = resourceDataForRequestId(requestId); |
| 390 if (resourceData) | 390 if (resourceData) |
| 391 m_contentSize -= resourceData->evictContent(); | 391 m_contentSize -= resourceData->evictContent(); |
| 392 } | 392 } |
| 393 return true; | 393 return true; |
| 394 } | 394 } |
| 395 | 395 |
| 396 } // namespace WebCore | 396 } // namespace WebCore |
| 397 | 397 |
| OLD | NEW |