| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void makeSimpleCrossOriginAccessRequest(const ResourceRequest&); | 93 void makeSimpleCrossOriginAccessRequest(const ResourceRequest&); |
| 94 void makeCrossOriginAccessRequestWithPreflight(const ResourceRequest&); | 94 void makeCrossOriginAccessRequestWithPreflight(const ResourceRequest&); |
| 95 void preflightSuccess(); | 95 void preflightSuccess(); |
| 96 void preflightFailure(const String& url, const String& errorDescription)
; | 96 void preflightFailure(const String& url, const String& errorDescription)
; |
| 97 | 97 |
| 98 void loadRequest(const ResourceRequest&, SecurityCheckPolicy); | 98 void loadRequest(const ResourceRequest&, SecurityCheckPolicy); |
| 99 bool isAllowedRedirect(const KURL&) const; | 99 bool isAllowedRedirect(const KURL&) const; |
| 100 bool isAllowedByPolicy(const KURL&) const; | 100 bool isAllowedByPolicy(const KURL&) const; |
| 101 | 101 |
| 102 SecurityOrigin* securityOrigin() const; | 102 SecurityOrigin* securityOrigin() const; |
| 103 bool checkCrossOriginAccessRedirectionUrl(const KURL&, String& errorDesc
ription); | |
| 104 | 103 |
| 105 ThreadableLoaderClient* m_client; | 104 ThreadableLoaderClient* m_client; |
| 106 Document* m_document; | 105 Document* m_document; |
| 107 ThreadableLoaderOptions m_options; | 106 ThreadableLoaderOptions m_options; |
| 108 bool m_sameOriginRequest; | 107 bool m_sameOriginRequest; |
| 109 bool m_simpleRequest; | 108 bool m_simpleRequest; |
| 110 bool m_async; | 109 bool m_async; |
| 111 OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Contr
ol preflight checks | 110 OwnPtr<ResourceRequest> m_actualRequest; // non-null during Access Contr
ol preflight checks |
| 112 Timer<DocumentThreadableLoader> m_timeoutTimer; | 111 Timer<DocumentThreadableLoader> m_timeoutTimer; |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 } // namespace WebCore | 114 } // namespace WebCore |
| 116 | 115 |
| 117 #endif // DocumentThreadableLoader_h | 116 #endif // DocumentThreadableLoader_h |
| OLD | NEW |