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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 2689173002: Implement script MIME restrictions for X-Content-Type-Options: nosniff for Workers (Closed)
Patch Set: incorporated mkwst@'s comment Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 const AtomicString& httpHeaderField(const AtomicString& name) const; 181 const AtomicString& httpHeaderField(const AtomicString& name) const;
182 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value); 182 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value);
183 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value); 183 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value);
184 void clearHTTPHeaderField(const AtomicString& name); 184 void clearHTTPHeaderField(const AtomicString& name);
185 const HTTPHeaderMap& httpHeaderFields() const; 185 const HTTPHeaderMap& httpHeaderFields() const;
186 186
187 bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace"; } 187 bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace"; }
188 188
189 bool isAttachment() const; 189 bool isAttachment() const;
190 190
191 AtomicString httpContentType() const;
192
191 // FIXME: These are used by PluginStream on some platforms. Calculations may 193 // FIXME: These are used by PluginStream on some platforms. Calculations may
192 // differ from just returning plain Last-Modified header. 194 // differ from just returning plain Last-Modified header.
193 // Leaving it for now but this should go away in favor of generic solution. 195 // Leaving it for now but this should go away in favor of generic solution.
194 void setLastModifiedDate(time_t); 196 void setLastModifiedDate(time_t);
195 time_t lastModifiedDate() const; 197 time_t lastModifiedDate() const;
196 198
197 // These functions return parsed values of the corresponding response headers. 199 // These functions return parsed values of the corresponding response headers.
198 // NaN means that the header was not present or had invalid value. 200 // NaN means that the header was not present or had invalid value.
199 bool cacheControlContainsNoCache() const; 201 bool cacheControlContainsNoCache() const;
200 bool cacheControlContainsNoStore() const; 202 bool cacheControlContainsNoStore() const;
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 long long m_encodedDataLength; 570 long long m_encodedDataLength;
569 long long m_encodedBodyLength; 571 long long m_encodedBodyLength;
570 long long m_decodedBodyLength; 572 long long m_decodedBodyLength;
571 String m_downloadedFilePath; 573 String m_downloadedFilePath;
572 RefPtr<BlobDataHandle> m_downloadedFileHandle; 574 RefPtr<BlobDataHandle> m_downloadedFileHandle;
573 }; 575 };
574 576
575 } // namespace blink 577 } // namespace blink
576 578
577 #endif // ResourceResponse_h 579 #endif // ResourceResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698