| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 std::unique_ptr<WebDataConsumerHandle>) override; | 161 std::unique_ptr<WebDataConsumerHandle>) override; |
| 162 void didReceiveData(const char*, unsigned dataLength) override; | 162 void didReceiveData(const char*, unsigned dataLength) override; |
| 163 void didDownloadData(int dataLength) override; | 163 void didDownloadData(int dataLength) override; |
| 164 void didReceiveCachedMetadata(const char*, int dataLength) override; | 164 void didReceiveCachedMetadata(const char*, int dataLength) override; |
| 165 void didFinishLoading(unsigned long identifier, double finishTime) override; | 165 void didFinishLoading(unsigned long identifier, double finishTime) override; |
| 166 void didFail(const ResourceError&) override; | 166 void didFail(const ResourceError&) override; |
| 167 void didFailAccessControlCheck(const ResourceError&) override; | 167 void didFailAccessControlCheck(const ResourceError&) override; |
| 168 void didFailRedirectCheck() override; | 168 void didFailRedirectCheck() override; |
| 169 void didReceiveResourceTiming(const ResourceTimingInfo&) override; | 169 void didReceiveResourceTiming(const ResourceTimingInfo&) override; |
| 170 | 170 |
| 171 void contextDestroyed() override; | 171 void contextDestroyed(WorkerThreadLifecycleContext*) override; |
| 172 | 172 |
| 173 DECLARE_TRACE(); | 173 DECLARE_TRACE(); |
| 174 | 174 |
| 175 private: | 175 private: |
| 176 MainThreadLoaderHolder(TaskForwarder*, WorkerThreadLifecycleContext*); | 176 MainThreadLoaderHolder(TaskForwarder*, WorkerThreadLifecycleContext*); |
| 177 void start(Document&, | 177 void start(Document&, |
| 178 std::unique_ptr<CrossThreadResourceRequestData>, | 178 std::unique_ptr<CrossThreadResourceRequestData>, |
| 179 const ThreadableLoaderOptions&, | 179 const ThreadableLoaderOptions&, |
| 180 const ResourceLoaderOptions&); | 180 const ResourceLoaderOptions&); |
| 181 | 181 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 ResourceLoaderOptions m_resourceLoaderOptions; | 217 ResourceLoaderOptions m_resourceLoaderOptions; |
| 218 BlockingBehavior m_blockingBehavior; | 218 BlockingBehavior m_blockingBehavior; |
| 219 | 219 |
| 220 // |*m_mainThreadLoaderHolder| lives in the main thread. | 220 // |*m_mainThreadLoaderHolder| lives in the main thread. |
| 221 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder; | 221 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder; |
| 222 }; | 222 }; |
| 223 | 223 |
| 224 } // namespace blink | 224 } // namespace blink |
| 225 | 225 |
| 226 #endif // WorkerThreadableLoader_h | 226 #endif // WorkerThreadableLoader_h |
| OLD | NEW |