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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 XHRReplayData::XHRReplayData(ExecutionContext* executionContext, | 58 XHRReplayData::XHRReplayData(ExecutionContext* executionContext, |
59 const AtomicString& method, | 59 const AtomicString& method, |
60 const KURL& url, | 60 const KURL& url, |
61 bool async, | 61 bool async, |
62 PassRefPtr<EncodedFormData> formData, | 62 PassRefPtr<EncodedFormData> formData, |
63 bool includeCredentials) | 63 bool includeCredentials) |
64 : m_executionContext(executionContext), | 64 : m_executionContext(executionContext), |
65 m_method(method), | 65 m_method(method), |
66 m_url(url), | 66 m_url(url), |
67 m_async(async), | 67 m_async(async), |
68 m_formData(formData), | 68 m_formData(std::move(formData)), |
69 m_includeCredentials(includeCredentials) {} | 69 m_includeCredentials(includeCredentials) {} |
70 | 70 |
71 DEFINE_TRACE(XHRReplayData) { | 71 DEFINE_TRACE(XHRReplayData) { |
72 visitor->trace(m_executionContext); | 72 visitor->trace(m_executionContext); |
73 } | 73 } |
74 | 74 |
75 // ResourceData | 75 // ResourceData |
76 NetworkResourcesData::ResourceData::ResourceData( | 76 NetworkResourcesData::ResourceData::ResourceData( |
77 NetworkResourcesData* networkResourcesData, | 77 NetworkResourcesData* networkResourcesData, |
78 const String& requestId, | 78 const String& requestId, |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |