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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 } | 181 } |
182 Member<RawResource> resource_; | 182 Member<RawResource> resource_; |
183 // End of ResourceOwner re-implementation, see above. | 183 // End of ResourceOwner re-implementation, see above. |
184 | 184 |
185 const SecurityOrigin* GetSecurityOrigin() const; | 185 const SecurityOrigin* GetSecurityOrigin() const; |
186 | 186 |
187 // TODO(kinuko): Remove dependency to document. | 187 // TODO(kinuko): Remove dependency to document. |
188 Document* GetDocument() const; | 188 Document* GetDocument() const; |
189 | 189 |
| 190 // TODO(mkwst): Remove this once we have the data to make decisions about |
| 191 // changes to CORS. |
| 192 void MeasureAccessControlAllowOrigin(const ResourceResponse&) const; |
| 193 |
190 ThreadableLoaderClient* client_; | 194 ThreadableLoaderClient* client_; |
191 Member<ThreadableLoadingContext> loading_context_; | 195 Member<ThreadableLoadingContext> loading_context_; |
192 | 196 |
193 const ThreadableLoaderOptions options_; | 197 const ThreadableLoaderOptions options_; |
194 // Some items may be overridden by m_forceDoNotAllowStoredCredentials and | 198 // Some items may be overridden by m_forceDoNotAllowStoredCredentials and |
195 // m_securityOrigin. In such a case, build a ResourceLoaderOptions with | 199 // m_securityOrigin. In such a case, build a ResourceLoaderOptions with |
196 // up-to-date values from them and this variable, and use it. | 200 // up-to-date values from them and this variable, and use it. |
197 const ResourceLoaderOptions resource_loader_options_; | 201 const ResourceLoaderOptions resource_loader_options_; |
198 | 202 |
199 bool force_do_not_allow_stored_credentials_; | 203 bool force_do_not_allow_stored_credentials_; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 // used to populate the HTTP Referer header when following the redirect. | 243 // used to populate the HTTP Referer header when following the redirect. |
240 bool override_referrer_; | 244 bool override_referrer_; |
241 Referrer referrer_after_redirect_; | 245 Referrer referrer_after_redirect_; |
242 | 246 |
243 RawResourceClientStateChecker checker_; | 247 RawResourceClientStateChecker checker_; |
244 }; | 248 }; |
245 | 249 |
246 } // namespace blink | 250 } // namespace blink |
247 | 251 |
248 #endif // DocumentThreadableLoader_h | 252 #endif // DocumentThreadableLoader_h |
OLD | NEW |