| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 const ResourceLoaderOptions&, | 147 const ResourceLoaderOptions&, |
| 148 PassRefPtr<WaitableEventWithTasks>, | 148 PassRefPtr<WaitableEventWithTasks>, |
| 149 ExecutionContext*); | 149 ExecutionContext*); |
| 150 ~MainThreadLoaderHolder() override; | 150 ~MainThreadLoaderHolder() override; |
| 151 | 151 |
| 152 void overrideTimeout(unsigned long timeoutMillisecond); | 152 void overrideTimeout(unsigned long timeoutMillisecond); |
| 153 void cancel(); | 153 void cancel(); |
| 154 | 154 |
| 155 void didSendData(unsigned long long bytesSent, | 155 void didSendData(unsigned long long bytesSent, |
| 156 unsigned long long totalBytesToBeSent) override; | 156 unsigned long long totalBytesToBeSent) override; |
| 157 void didReceiveRedirectTo(const KURL&) override; |
| 157 void didReceiveResponse(unsigned long identifier, | 158 void didReceiveResponse(unsigned long identifier, |
| 158 const ResourceResponse&, | 159 const ResourceResponse&, |
| 159 std::unique_ptr<WebDataConsumerHandle>) override; | 160 std::unique_ptr<WebDataConsumerHandle>) override; |
| 160 void didReceiveData(const char*, unsigned dataLength) override; | 161 void didReceiveData(const char*, unsigned dataLength) override; |
| 161 void didDownloadData(int dataLength) override; | 162 void didDownloadData(int dataLength) override; |
| 162 void didReceiveCachedMetadata(const char*, int dataLength) override; | 163 void didReceiveCachedMetadata(const char*, int dataLength) override; |
| 163 void didFinishLoading(unsigned long identifier, double finishTime) override; | 164 void didFinishLoading(unsigned long identifier, double finishTime) override; |
| 164 void didFail(const ResourceError&) override; | 165 void didFail(const ResourceError&) override; |
| 165 void didFailAccessControlCheck(const ResourceError&) override; | 166 void didFailAccessControlCheck(const ResourceError&) override; |
| 166 void didFailRedirectCheck() override; | 167 void didFailRedirectCheck() override; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 186 | 187 |
| 187 WorkerThreadableLoader(WorkerGlobalScope&, | 188 WorkerThreadableLoader(WorkerGlobalScope&, |
| 188 ThreadableLoaderClient*, | 189 ThreadableLoaderClient*, |
| 189 const ThreadableLoaderOptions&, | 190 const ThreadableLoaderOptions&, |
| 190 const ResourceLoaderOptions&, | 191 const ResourceLoaderOptions&, |
| 191 BlockingBehavior); | 192 BlockingBehavior); |
| 192 void didStart(MainThreadLoaderHolder*); | 193 void didStart(MainThreadLoaderHolder*); |
| 193 | 194 |
| 194 void didSendData(unsigned long long bytesSent, | 195 void didSendData(unsigned long long bytesSent, |
| 195 unsigned long long totalBytesToBeSent); | 196 unsigned long long totalBytesToBeSent); |
| 197 void didReceiveRedirectTo(const KURL&); |
| 196 void didReceiveResponse(unsigned long identifier, | 198 void didReceiveResponse(unsigned long identifier, |
| 197 std::unique_ptr<CrossThreadResourceResponseData>, | 199 std::unique_ptr<CrossThreadResourceResponseData>, |
| 198 std::unique_ptr<WebDataConsumerHandle>); | 200 std::unique_ptr<WebDataConsumerHandle>); |
| 199 void didReceiveData(std::unique_ptr<Vector<char>> data); | 201 void didReceiveData(std::unique_ptr<Vector<char>> data); |
| 200 void didReceiveCachedMetadata(std::unique_ptr<Vector<char>> data); | 202 void didReceiveCachedMetadata(std::unique_ptr<Vector<char>> data); |
| 201 void didFinishLoading(unsigned long identifier, double finishTime); | 203 void didFinishLoading(unsigned long identifier, double finishTime); |
| 202 void didFail(const ResourceError&); | 204 void didFail(const ResourceError&); |
| 203 void didFailAccessControlCheck(const ResourceError&); | 205 void didFailAccessControlCheck(const ResourceError&); |
| 204 void didFailRedirectCheck(); | 206 void didFailRedirectCheck(); |
| 205 void didDownloadData(int dataLength); | 207 void didDownloadData(int dataLength); |
| 206 void didReceiveResourceTiming( | 208 void didReceiveResourceTiming( |
| 207 std::unique_ptr<CrossThreadResourceTimingInfoData>); | 209 std::unique_ptr<CrossThreadResourceTimingInfoData>); |
| 208 | 210 |
| 209 Member<WorkerGlobalScope> m_workerGlobalScope; | 211 Member<WorkerGlobalScope> m_workerGlobalScope; |
| 210 RefPtr<WorkerLoaderProxy> m_workerLoaderProxy; | 212 RefPtr<WorkerLoaderProxy> m_workerLoaderProxy; |
| 211 ThreadableLoaderClient* m_client; | 213 ThreadableLoaderClient* m_client; |
| 212 | 214 |
| 213 ThreadableLoaderOptions m_threadableLoaderOptions; | 215 ThreadableLoaderOptions m_threadableLoaderOptions; |
| 214 ResourceLoaderOptions m_resourceLoaderOptions; | 216 ResourceLoaderOptions m_resourceLoaderOptions; |
| 215 BlockingBehavior m_blockingBehavior; | 217 BlockingBehavior m_blockingBehavior; |
| 216 | 218 |
| 217 // |*m_mainThreadLoaderHolder| lives in the main thread. | 219 // |*m_mainThreadLoaderHolder| lives in the main thread. |
| 218 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder; | 220 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder; |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // namespace blink | 223 } // namespace blink |
| 222 | 224 |
| 223 #endif // WorkerThreadableLoader_h | 225 #endif // WorkerThreadableLoader_h |
| OLD | NEW |