| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 RefPtr<ThreadableLoaderClientWrapper> clientWrapper(ThreadableLoaderClientWr
apper::create(&client)); | 81 RefPtr<ThreadableLoaderClientWrapper> clientWrapper(ThreadableLoaderClientWr
apper::create(&client)); |
| 82 OwnPtr<WorkerLoaderClientBridgeSyncHelper> clientBridge(WorkerLoaderClientBr
idgeSyncHelper::create(clientWrapper.get(), loaderDone.release())); | 82 OwnPtr<WorkerLoaderClientBridgeSyncHelper> clientBridge(WorkerLoaderClientBr
idgeSyncHelper::create(clientWrapper.get(), loaderDone.release())); |
| 83 | 83 |
| 84 // This must be valid while loader is around. | 84 // This must be valid while loader is around. |
| 85 WorkerLoaderClientBridgeSyncHelper* clientBridgePtr = clientBridge.get(); | 85 WorkerLoaderClientBridgeSyncHelper* clientBridgePtr = clientBridge.get(); |
| 86 | 86 |
| 87 RefPtr<WorkerThreadableLoader> loader = WorkerThreadableLoader::create(worke
rGlobalScope, clientWrapper, clientBridge.release(), request, options, resourceL
oaderOptions); | 87 RefPtr<WorkerThreadableLoader> loader = WorkerThreadableLoader::create(worke
rGlobalScope, clientWrapper, clientBridge.release(), request, options, resourceL
oaderOptions); |
| 88 | 88 |
| 89 WebWaitableEvent* signalled; | 89 WebWaitableEvent* signalled; |
| 90 { | 90 { |
| 91 SafePointScope scope(ThreadState::HeapPointersOnStack); | 91 SafePointScope scope(BlinkGC::HeapPointersOnStack); |
| 92 signalled = Platform::current()->waitMultipleEvents(events); | 92 signalled = Platform::current()->waitMultipleEvents(events); |
| 93 } | 93 } |
| 94 if (signalled == shutdownEvent) { | 94 if (signalled == shutdownEvent) { |
| 95 loader->cancel(); | 95 loader->cancel(); |
| 96 return; | 96 return; |
| 97 } | 97 } |
| 98 | 98 |
| 99 clientBridgePtr->run(); | 99 clientBridgePtr->run(); |
| 100 } | 100 } |
| 101 | 101 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 { | 267 { |
| 268 m_clientBridge->didFailRedirectCheck(); | 268 m_clientBridge->didFailRedirectCheck(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void WorkerThreadableLoader::MainThreadBridge::didReceiveResourceTiming(const Re
sourceTimingInfo& info) | 271 void WorkerThreadableLoader::MainThreadBridge::didReceiveResourceTiming(const Re
sourceTimingInfo& info) |
| 272 { | 272 { |
| 273 m_clientBridge->didReceiveResourceTiming(info); | 273 m_clientBridge->didReceiveResourceTiming(info); |
| 274 } | 274 } |
| 275 | 275 |
| 276 } // namespace blink | 276 } // namespace blink |
| OLD | NEW |