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

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

Issue 1279163005: Initial Fetch integration for Subresource Integrity (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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 #ifndef FetchRequestData_h 5 #ifndef FetchRequestData_h
6 #define FetchRequestData_h 6 #define FetchRequestData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 #include "platform/weborigin/Referrer.h" 10 #include "platform/weborigin/Referrer.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia ls; } 83 WebURLRequest::FetchCredentialsMode credentials() const { return m_credentia ls; }
84 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; } 84 void setResponseTainting(Tainting tainting) { m_responseTainting = tainting; }
85 Tainting tainting() const { return m_responseTainting; } 85 Tainting tainting() const { return m_responseTainting; }
86 FetchHeaderList* headerList() const { return m_headerList.get(); } 86 FetchHeaderList* headerList() const { return m_headerList.get(); }
87 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList; } 87 void setHeaderList(FetchHeaderList* headerList) { m_headerList = headerList; }
88 BodyStreamBuffer* buffer() const { return m_buffer; } 88 BodyStreamBuffer* buffer() const { return m_buffer; }
89 // Call Request::refreshBody() after calling setBuffer(). 89 // Call Request::refreshBody() after calling setBuffer().
90 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } 90 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; }
91 String mimeType() const { return m_mimeType; } 91 String mimeType() const { return m_mimeType; }
92 void setMIMEType(const String& type) { m_mimeType = type; } 92 void setMIMEType(const String& type) { m_mimeType = type; }
93 String integrity() const { return m_integrity; }
94 void setIntegrity(const String& integrity) { m_integrity = integrity; }
93 95
94 DECLARE_TRACE(); 96 DECLARE_TRACE();
95 97
96 private: 98 private:
97 FetchRequestData(); 99 FetchRequestData();
98 100
99 FetchRequestData* cloneExceptBody(); 101 FetchRequestData* cloneExceptBody();
100 102
101 AtomicString m_method; 103 AtomicString m_method;
102 KURL m_url; 104 KURL m_url;
103 Member<FetchHeaderList> m_headerList; 105 Member<FetchHeaderList> m_headerList;
104 bool m_unsafeRequestFlag; 106 bool m_unsafeRequestFlag;
105 // FIXME: Support m_skipServiceWorkerFlag; 107 // FIXME: Support m_skipServiceWorkerFlag;
106 WebURLRequest::RequestContext m_context; 108 WebURLRequest::RequestContext m_context;
107 RefPtr<SecurityOrigin> m_origin; 109 RefPtr<SecurityOrigin> m_origin;
108 // FIXME: Support m_forceOriginHeaderFlag; 110 // FIXME: Support m_forceOriginHeaderFlag;
109 bool m_sameOriginDataURLFlag; 111 bool m_sameOriginDataURLFlag;
110 Referrer m_referrer; 112 Referrer m_referrer;
111 // FIXME: Support m_authenticationFlag; 113 // FIXME: Support m_authenticationFlag;
112 // FIXME: Support m_synchronousFlag; 114 // FIXME: Support m_synchronousFlag;
113 WebURLRequest::FetchRequestMode m_mode; 115 WebURLRequest::FetchRequestMode m_mode;
114 WebURLRequest::FetchCredentialsMode m_credentials; 116 WebURLRequest::FetchCredentialsMode m_credentials;
115 // FIXME: Support m_useURLCredentialsFlag; 117 // FIXME: Support m_useURLCredentialsFlag;
116 // FIXME: Support m_manualRedirectFlag; 118 // FIXME: Support m_manualRedirectFlag;
117 // FIXME: Support m_redirectCount; 119 // FIXME: Support m_redirectCount;
118 Tainting m_responseTainting; 120 Tainting m_responseTainting;
119 Member<BodyStreamBuffer> m_buffer; 121 Member<BodyStreamBuffer> m_buffer;
120 String m_mimeType; 122 String m_mimeType;
123 String m_integrity;
121 }; 124 };
122 125
123 } // namespace blink 126 } // namespace blink
124 127
125 #endif // FetchRequestData_h 128 #endif // FetchRequestData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698