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

Side by Side Diff: Source/modules/fetch/FetchRequestData.cpp

Issue 1279163005: Initial Fetch integration for Subresource Integrity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test expectations Created 5 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
« no previous file with comments | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/fetch/Request.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/fetch/FetchRequestData.h" 6 #include "modules/fetch/FetchRequestData.h"
7 7
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/fetch/ResourceLoaderOptions.h" 9 #include "core/fetch/ResourceLoaderOptions.h"
10 #include "core/loader/ThreadableLoader.h" 10 #include "core/loader/ThreadableLoader.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 request->m_unsafeRequestFlag = m_unsafeRequestFlag; 50 request->m_unsafeRequestFlag = m_unsafeRequestFlag;
51 request->m_origin = m_origin; 51 request->m_origin = m_origin;
52 request->m_sameOriginDataURLFlag = m_sameOriginDataURLFlag; 52 request->m_sameOriginDataURLFlag = m_sameOriginDataURLFlag;
53 request->m_context = m_context; 53 request->m_context = m_context;
54 request->m_referrer = m_referrer; 54 request->m_referrer = m_referrer;
55 request->m_mode = m_mode; 55 request->m_mode = m_mode;
56 request->m_credentials = m_credentials; 56 request->m_credentials = m_credentials;
57 request->m_redirect = m_redirect; 57 request->m_redirect = m_redirect;
58 request->m_responseTainting = m_responseTainting; 58 request->m_responseTainting = m_responseTainting;
59 request->m_mimeType = m_mimeType; 59 request->m_mimeType = m_mimeType;
60 request->m_integrity = m_integrity;
60 return request; 61 return request;
61 } 62 }
62 63
63 FetchRequestData* FetchRequestData::clone(ExecutionContext* executionContext) 64 FetchRequestData* FetchRequestData::clone(ExecutionContext* executionContext)
64 { 65 {
65 FetchRequestData* request = FetchRequestData::cloneExceptBody(); 66 FetchRequestData* request = FetchRequestData::cloneExceptBody();
66 if (m_buffer->hasBody()) { 67 if (m_buffer->hasBody()) {
67 OwnPtr<FetchDataConsumerHandle> dest1, dest2; 68 OwnPtr<FetchDataConsumerHandle> dest1, dest2;
68 // TODO(yhirano): unlock the buffer. 69 // TODO(yhirano): unlock the buffer.
69 DataConsumerTee::create(executionContext, m_buffer->lock(executionContex t), &dest1, &dest2); 70 DataConsumerTee::create(executionContext, m_buffer->lock(executionContex t), &dest1, &dest2);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { 102 {
102 } 103 }
103 104
104 DEFINE_TRACE(FetchRequestData) 105 DEFINE_TRACE(FetchRequestData)
105 { 106 {
106 visitor->trace(m_buffer); 107 visitor->trace(m_buffer);
107 visitor->trace(m_headerList); 108 visitor->trace(m_headerList);
108 } 109 }
109 110
110 } // namespace blink 111 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/fetch/FetchRequestData.h ('k') | Source/modules/fetch/Request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698