| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. |
| 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 void didFailRedirectCheck() override; | 89 void didFailRedirectCheck() override; |
| 90 | 90 |
| 91 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req
uestContext = requestContext; } | 91 void setRequestContext(WebURLRequest::RequestContext requestContext) { m_req
uestContext = requestContext; } |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 friend class WTF::RefCounted<WorkerScriptLoader>; | 94 friend class WTF::RefCounted<WorkerScriptLoader>; |
| 95 | 95 |
| 96 WorkerScriptLoader(); | 96 WorkerScriptLoader(); |
| 97 ~WorkerScriptLoader() override; | 97 ~WorkerScriptLoader() override; |
| 98 | 98 |
| 99 ResourceRequest createResourceRequest(); | 99 ResourceRequest createResourceRequest(ExecutionContext&); |
| 100 void notifyError(); | 100 void notifyError(); |
| 101 void notifyFinished(); | 101 void notifyFinished(); |
| 102 | 102 |
| 103 void processContentSecurityPolicy(const ResourceResponse&); | 103 void processContentSecurityPolicy(const ResourceResponse&); |
| 104 | 104 |
| 105 // Callbacks for loadAsynchronously(). | 105 // Callbacks for loadAsynchronously(). |
| 106 OwnPtr<Closure> m_responseCallback; | 106 OwnPtr<Closure> m_responseCallback; |
| 107 OwnPtr<Closure> m_finishedCallback; | 107 OwnPtr<Closure> m_finishedCallback; |
| 108 | 108 |
| 109 RefPtr<ThreadableLoader> m_threadableLoader; | 109 RefPtr<ThreadableLoader> m_threadableLoader; |
| 110 String m_responseEncoding; | 110 String m_responseEncoding; |
| 111 OwnPtr<TextResourceDecoder> m_decoder; | 111 OwnPtr<TextResourceDecoder> m_decoder; |
| 112 StringBuilder m_script; | 112 StringBuilder m_script; |
| 113 KURL m_url; | 113 KURL m_url; |
| 114 KURL m_responseURL; | 114 KURL m_responseURL; |
| 115 bool m_failed; | 115 bool m_failed; |
| 116 bool m_needToCancel; | 116 bool m_needToCancel; |
| 117 unsigned long m_identifier; | 117 unsigned long m_identifier; |
| 118 long long m_appCacheID; | 118 long long m_appCacheID; |
| 119 OwnPtr<Vector<char>> m_cachedMetadata; | 119 OwnPtr<Vector<char>> m_cachedMetadata; |
| 120 WebURLRequest::RequestContext m_requestContext; | 120 WebURLRequest::RequestContext m_requestContext; |
| 121 RefPtrWillBePersistent<ContentSecurityPolicy> m_contentSecurityPolicy; | 121 RefPtrWillBePersistent<ContentSecurityPolicy> m_contentSecurityPolicy; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace blink | 124 } // namespace blink |
| 125 | 125 |
| 126 #endif // WorkerScriptLoader_h | 126 #endif // WorkerScriptLoader_h |
| OLD | NEW |