| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 , m_shouldSendReferrer(MaybeSendReferrer) | 102 , m_shouldSendReferrer(MaybeSendReferrer) |
| 103 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten
tSecurityPolicy) | 103 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten
tSecurityPolicy) |
| 104 { | 104 { |
| 105 initializeFetchFlags(); | 105 initializeFetchFlags(); |
| 106 if (originDocument) | 106 if (originDocument) |
| 107 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo
cument->url())); | 107 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo
cument->url())); |
| 108 } | 108 } |
| 109 void initializeFetchFlags() | 109 void initializeFetchFlags() |
| 110 { | 110 { |
| 111 // These flags are passed to a service worker which controls the page. | 111 // These flags are passed to a service worker which controls the page. |
| 112 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeSam
eOrigin); | 112 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeNav
igate); |
| 113 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential
sModeInclude); | 113 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential
sModeInclude); |
| 114 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM
anual); | 114 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM
anual); |
| 115 } | 115 } |
| 116 RefPtrWillBeMember<Document> m_originDocument; | 116 RefPtrWillBeMember<Document> m_originDocument; |
| 117 ResourceRequest m_resourceRequest; | 117 ResourceRequest m_resourceRequest; |
| 118 AtomicString m_frameName; | 118 AtomicString m_frameName; |
| 119 SubstituteData m_substituteData; | 119 SubstituteData m_substituteData; |
| 120 bool m_replacesCurrentItem; | 120 bool m_replacesCurrentItem; |
| 121 ClientRedirectPolicy m_clientRedirect; | 121 ClientRedirectPolicy m_clientRedirect; |
| 122 RefPtrWillBeMember<Event> m_triggeringEvent; | 122 RefPtrWillBeMember<Event> m_triggeringEvent; |
| 123 RefPtrWillBeMember<HTMLFormElement> m_form; | 123 RefPtrWillBeMember<HTMLFormElement> m_form; |
| 124 ShouldSendReferrer m_shouldSendReferrer; | 124 ShouldSendReferrer m_shouldSendReferrer; |
| 125 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy
; | 125 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy
; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } | 128 } |
| 129 | 129 |
| 130 #endif // FrameLoadRequest_h | 130 #endif // FrameLoadRequest_h |
| OLD | NEW |