| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 122 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
| 123 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 123 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
| 124 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); | 124 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); |
| 125 void clearHTTPHeaderField(const AtomicString& name); | 125 void clearHTTPHeaderField(const AtomicString& name); |
| 126 | 126 |
| 127 const AtomicString& httpContentType() const { return httpHeaderField(HTTPNam
es::Content_Type); } | 127 const AtomicString& httpContentType() const { return httpHeaderField(HTTPNam
es::Content_Type); } |
| 128 void setHTTPContentType(const AtomicString& httpContentType) { setHTTPHeader
Field(HTTPNames::Content_Type, httpContentType); } | 128 void setHTTPContentType(const AtomicString& httpContentType) { setHTTPHeader
Field(HTTPNames::Content_Type, httpContentType); } |
| 129 | 129 |
| 130 bool didSetHTTPReferrer() const { return m_didSetHTTPReferrer; } | 130 bool didSetHTTPReferrer() const { return m_didSetHTTPReferrer; } |
| 131 const AtomicString& httpReferrer() const { return httpHeaderField(HTTPNames:
:Referer); } | 131 const AtomicString& httpReferrer() const { return httpHeaderField(HTTPNames:
:Referer); } |
| 132 ReferrerPolicy referrerPolicy() const { return m_referrerPolicy; } | 132 ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; } |
| 133 void setHTTPReferrer(const Referrer&); | 133 void setHTTPReferrer(const Referrer&); |
| 134 void clearHTTPReferrer(); | 134 void clearHTTPReferrer(); |
| 135 | 135 |
| 136 const AtomicString& httpOrigin() const { return httpHeaderField(HTTPNames::O
rigin); } | 136 const AtomicString& httpOrigin() const { return httpHeaderField(HTTPNames::O
rigin); } |
| 137 const AtomicString& httpSuborigin() const { return httpHeaderField(HTTPNames
::Suborigin); } | 137 const AtomicString& httpSuborigin() const { return httpHeaderField(HTTPNames
::Suborigin); } |
| 138 // Note that these will also set and clear, respectively, the | 138 // Note that these will also set and clear, respectively, the |
| 139 // Suborigin header, if appropriate. | 139 // Suborigin header, if appropriate. |
| 140 void setHTTPOrigin(PassRefPtr<SecurityOrigin>); | 140 void setHTTPOrigin(PassRefPtr<SecurityOrigin>); |
| 141 void clearHTTPOrigin(); | 141 void clearHTTPOrigin(); |
| 142 void addHTTPOriginIfNeeded(PassRefPtr<SecurityOrigin>); | 142 void addHTTPOriginIfNeeded(PassRefPtr<SecurityOrigin>); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 bool m_checkForBrowserSideNavigation; | 336 bool m_checkForBrowserSideNavigation; |
| 337 double m_uiStartTime; | 337 double m_uiStartTime; |
| 338 bool m_originatesFromReservedIPRange; | 338 bool m_originatesFromReservedIPRange; |
| 339 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 339 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 340 bool m_followedRedirect; | 340 bool m_followedRedirect; |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 } // namespace blink | 343 } // namespace blink |
| 344 | 344 |
| 345 #endif // ResourceRequest_h | 345 #endif // ResourceRequest_h |
| OLD | NEW |