Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/core/loader/WorkerThreadableLoader.h

Issue 2709193002: WorkerLoaderProxy: stop accessing cross-thread execution context (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 USING_GARBAGE_COLLECTED_MIXIN(MainThreadLoaderHolder); 138 USING_GARBAGE_COLLECTED_MIXIN(MainThreadLoaderHolder);
139 USING_PRE_FINALIZER(MainThreadLoaderHolder, cancel); 139 USING_PRE_FINALIZER(MainThreadLoaderHolder, cancel);
140 140
141 public: 141 public:
142 static void createAndStart(WorkerThreadableLoader*, 142 static void createAndStart(WorkerThreadableLoader*,
143 PassRefPtr<WorkerLoaderProxy>, 143 PassRefPtr<WorkerLoaderProxy>,
144 WorkerThreadLifecycleContext*, 144 WorkerThreadLifecycleContext*,
145 std::unique_ptr<CrossThreadResourceRequestData>, 145 std::unique_ptr<CrossThreadResourceRequestData>,
146 const ThreadableLoaderOptions&, 146 const ThreadableLoaderOptions&,
147 const ResourceLoaderOptions&, 147 const ResourceLoaderOptions&,
148 PassRefPtr<WaitableEventWithTasks>, 148 PassRefPtr<WaitableEventWithTasks>);
149 ExecutionContext*);
150 ~MainThreadLoaderHolder() override; 149 ~MainThreadLoaderHolder() override;
151 150
152 void overrideTimeout(unsigned long timeoutMillisecond); 151 void overrideTimeout(unsigned long timeoutMillisecond);
153 void cancel(); 152 void cancel();
154 153
155 void didSendData(unsigned long long bytesSent, 154 void didSendData(unsigned long long bytesSent,
156 unsigned long long totalBytesToBeSent) override; 155 unsigned long long totalBytesToBeSent) override;
157 void didReceiveRedirectTo(const KURL&) override; 156 void didReceiveRedirectTo(const KURL&) override;
158 void didReceiveResponse(unsigned long identifier, 157 void didReceiveResponse(unsigned long identifier,
159 const ResourceResponse&, 158 const ResourceResponse&,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 ResourceLoaderOptions m_resourceLoaderOptions; 215 ResourceLoaderOptions m_resourceLoaderOptions;
217 BlockingBehavior m_blockingBehavior; 216 BlockingBehavior m_blockingBehavior;
218 217
219 // |*m_mainThreadLoaderHolder| lives in the main thread. 218 // |*m_mainThreadLoaderHolder| lives in the main thread.
220 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder; 219 CrossThreadPersistent<MainThreadLoaderHolder> m_mainThreadLoaderHolder;
221 }; 220 };
222 221
223 } // namespace blink 222 } // namespace blink
224 223
225 #endif // WorkerThreadableLoader_h 224 #endif // WorkerThreadableLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698