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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 , m_shouldSetOpener(MaybeSetOpener) | 106 , m_shouldSetOpener(MaybeSetOpener) |
107 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten
tSecurityPolicy) | 107 , m_shouldCheckMainWorldContentSecurityPolicy(shouldCheckMainWorldConten
tSecurityPolicy) |
108 { | 108 { |
109 initializeFetchFlags(); | 109 initializeFetchFlags(); |
110 if (originDocument) | 110 if (originDocument) |
111 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo
cument->url())); | 111 m_resourceRequest.setRequestorOrigin(SecurityOrigin::create(originDo
cument->url())); |
112 } | 112 } |
113 void initializeFetchFlags() | 113 void initializeFetchFlags() |
114 { | 114 { |
115 // These flags are passed to a service worker which controls the page. | 115 // These flags are passed to a service worker which controls the page. |
116 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeSam
eOrigin); | 116 m_resourceRequest.setFetchRequestMode(WebURLRequest::FetchRequestModeNav
igate); |
117 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential
sModeInclude); | 117 m_resourceRequest.setFetchCredentialsMode(WebURLRequest::FetchCredential
sModeInclude); |
118 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM
anual); | 118 m_resourceRequest.setFetchRedirectMode(WebURLRequest::FetchRedirectModeM
anual); |
119 } | 119 } |
120 RefPtrWillBeMember<Document> m_originDocument; | 120 RefPtrWillBeMember<Document> m_originDocument; |
121 ResourceRequest m_resourceRequest; | 121 ResourceRequest m_resourceRequest; |
122 AtomicString m_frameName; | 122 AtomicString m_frameName; |
123 SubstituteData m_substituteData; | 123 SubstituteData m_substituteData; |
124 bool m_replacesCurrentItem; | 124 bool m_replacesCurrentItem; |
125 ClientRedirectPolicy m_clientRedirect; | 125 ClientRedirectPolicy m_clientRedirect; |
126 RefPtrWillBeMember<Event> m_triggeringEvent; | 126 RefPtrWillBeMember<Event> m_triggeringEvent; |
127 RefPtrWillBeMember<HTMLFormElement> m_form; | 127 RefPtrWillBeMember<HTMLFormElement> m_form; |
128 ShouldSendReferrer m_shouldSendReferrer; | 128 ShouldSendReferrer m_shouldSendReferrer; |
129 ShouldSetOpener m_shouldSetOpener; | 129 ShouldSetOpener m_shouldSetOpener; |
130 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy
; | 130 ContentSecurityPolicyDisposition m_shouldCheckMainWorldContentSecurityPolicy
; |
131 }; | 131 }; |
132 | 132 |
133 } | 133 } |
134 | 134 |
135 #endif // FrameLoadRequest_h | 135 #endif // FrameLoadRequest_h |
OLD | NEW |