OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 | 140 |
141 void loadRequest(const ResourceRequest&, ResourceLoaderOptions); | 141 void loadRequest(const ResourceRequest&, ResourceLoaderOptions); |
142 bool isAllowedRedirect(const KURL&) const; | 142 bool isAllowedRedirect(const KURL&) const; |
143 bool isAllowedByContentSecurityPolicy(const KURL&, ContentSecurityPolicy ::RedirectStatus) const; | 143 bool isAllowedByContentSecurityPolicy(const KURL&, ContentSecurityPolicy ::RedirectStatus) const; |
144 // Returns DoNotAllowStoredCredentials | 144 // Returns DoNotAllowStoredCredentials |
145 // if m_forceDoNotAllowStoredCredentials is set. Otherwise, just | 145 // if m_forceDoNotAllowStoredCredentials is set. Otherwise, just |
146 // returns allowCredentials value of m_resourceLoaderOptions. | 146 // returns allowCredentials value of m_resourceLoaderOptions. |
147 StoredCredentials effectiveAllowCredentials() const; | 147 StoredCredentials effectiveAllowCredentials() const; |
148 | 148 |
149 SecurityOrigin* securityOrigin() const; | 149 SecurityOrigin* securityOrigin() const; |
150 Document& document() const; | |
150 | 151 |
151 ThreadableLoaderClient* m_client; | 152 ThreadableLoaderClient* m_client; |
152 Document& m_document; | 153 RawPtrWillBeUntracedMember<Document> m_document; |
haraken
2015/11/12 14:23:54
So this should be WeakPersistent if it's hard to m
sof
2015/11/16 21:16:18
WeakPersistent<> it is (for now.)
| |
153 | 154 |
154 const ThreadableLoaderOptions m_options; | 155 const ThreadableLoaderOptions m_options; |
155 // Some items may be overridden by m_forceDoNotAllowStoredCredentials | 156 // Some items may be overridden by m_forceDoNotAllowStoredCredentials |
156 // and m_securityOrigin. In such a case, build a ResourceLoaderOptions | 157 // and m_securityOrigin. In such a case, build a ResourceLoaderOptions |
157 // with up-to-date values from them and this variable, and use it. | 158 // with up-to-date values from them and this variable, and use it. |
158 const ResourceLoaderOptions m_resourceLoaderOptions; | 159 const ResourceLoaderOptions m_resourceLoaderOptions; |
159 | 160 |
160 bool m_forceDoNotAllowStoredCredentials; | 161 bool m_forceDoNotAllowStoredCredentials; |
161 RefPtr<SecurityOrigin> m_securityOrigin; | 162 RefPtr<SecurityOrigin> m_securityOrigin; |
162 | 163 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
195 // But this value is not the max number of total redirects allowed, | 196 // But this value is not the max number of total redirects allowed, |
196 // because same-origin redirects are not counted here. | 197 // because same-origin redirects are not counted here. |
197 int m_corsRedirectLimit; | 198 int m_corsRedirectLimit; |
198 | 199 |
199 const WebURLRequest::FetchRedirectMode m_redirectMode; | 200 const WebURLRequest::FetchRedirectMode m_redirectMode; |
200 }; | 201 }; |
201 | 202 |
202 } // namespace blink | 203 } // namespace blink |
203 | 204 |
204 #endif // DocumentThreadableLoader_h | 205 #endif // DocumentThreadableLoader_h |
OLD | NEW |