| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void didReceiveResponse(unsigned long identifier, const ResourceResponse
&); | 88 void didReceiveResponse(unsigned long identifier, const ResourceResponse
&); |
| 89 void didReceiveData(const char* data, int dataLength); | 89 void didReceiveData(const char* data, int dataLength); |
| 90 void didFinishLoading(unsigned long identifier, double finishTime); | 90 void didFinishLoading(unsigned long identifier, double finishTime); |
| 91 void didTimeout(Timer<DocumentThreadableLoader>*); | 91 void didTimeout(Timer<DocumentThreadableLoader>*); |
| 92 void makeCrossOriginAccessRequest(const ResourceRequest&); | 92 void makeCrossOriginAccessRequest(const ResourceRequest&); |
| 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&); |
| 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 | 103 |
| 104 ThreadableLoaderClient* m_client; | 104 ThreadableLoaderClient* m_client; |
| 105 Document* m_document; | 105 Document* m_document; |
| 106 ThreadableLoaderOptions m_options; | 106 ThreadableLoaderOptions m_options; |
| 107 bool m_sameOriginRequest; | 107 bool m_sameOriginRequest; |
| 108 bool m_simpleRequest; | 108 bool m_simpleRequest; |
| 109 bool m_async; | 109 bool m_async; |
| 110 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 |
| 111 Timer<DocumentThreadableLoader> m_timeoutTimer; | 111 Timer<DocumentThreadableLoader> m_timeoutTimer; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace WebCore | 114 } // namespace WebCore |
| 115 | 115 |
| 116 #endif // DocumentThreadableLoader_h | 116 #endif // DocumentThreadableLoader_h |
| OLD | NEW |