| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 bool didSetHTTPReferrer() const { return m_didSetHTTPReferrer; } | 119 bool didSetHTTPReferrer() const { return m_didSetHTTPReferrer; } |
| 120 const AtomicString& httpReferrer() const { return httpHeaderField(HTTPNames:
:Referer); } | 120 const AtomicString& httpReferrer() const { return httpHeaderField(HTTPNames:
:Referer); } |
| 121 ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; } | 121 ReferrerPolicy getReferrerPolicy() const { return m_referrerPolicy; } |
| 122 void setHTTPReferrer(const Referrer&); | 122 void setHTTPReferrer(const Referrer&); |
| 123 void clearHTTPReferrer(); | 123 void clearHTTPReferrer(); |
| 124 | 124 |
| 125 const AtomicString& httpOrigin() const { return httpHeaderField(HTTPNames::O
rigin); } | 125 const AtomicString& httpOrigin() const { return httpHeaderField(HTTPNames::O
rigin); } |
| 126 const AtomicString& httpSuborigin() const { return httpHeaderField(HTTPNames
::Suborigin); } | 126 const AtomicString& httpSuborigin() const { return httpHeaderField(HTTPNames
::Suborigin); } |
| 127 // Note that these will also set and clear, respectively, the | 127 // Note that these will also set and clear, respectively, the |
| 128 // Suborigin header, if appropriate. | 128 // Suborigin header, if appropriate. |
| 129 void setHTTPOrigin(PassRefPtr<SecurityOrigin>); | 129 void setHTTPOrigin(const SecurityOrigin*); |
| 130 void clearHTTPOrigin(); | 130 void clearHTTPOrigin(); |
| 131 void addHTTPOriginIfNeeded(PassRefPtr<SecurityOrigin>); | 131 void addHTTPOriginIfNeeded(const SecurityOrigin*); |
| 132 | 132 |
| 133 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames
::User_Agent); } | 133 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames
::User_Agent); } |
| 134 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d(HTTPNames::User_Agent, httpUserAgent); } | 134 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d(HTTPNames::User_Agent, httpUserAgent); } |
| 135 void clearHTTPUserAgent(); | 135 void clearHTTPUserAgent(); |
| 136 | 136 |
| 137 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP
Names::Accept, httpAccept); } | 137 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP
Names::Accept, httpAccept); } |
| 138 | 138 |
| 139 EncodedFormData* httpBody() const; | 139 EncodedFormData* httpBody() const; |
| 140 void setHTTPBody(PassRefPtr<EncodedFormData>); | 140 void setHTTPBody(PassRefPtr<EncodedFormData>); |
| 141 | 141 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 bool m_checkForBrowserSideNavigation; | 323 bool m_checkForBrowserSideNavigation; |
| 324 double m_uiStartTime; | 324 double m_uiStartTime; |
| 325 bool m_isExternalRequest; | 325 bool m_isExternalRequest; |
| 326 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 326 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 327 ResourceRequest::RedirectStatus m_redirectStatus; | 327 ResourceRequest::RedirectStatus m_redirectStatus; |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 } // namespace blink | 330 } // namespace blink |
| 331 | 331 |
| 332 #endif // ResourceRequest_h | 332 #endif // ResourceRequest_h |
| OLD | NEW |