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

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

Issue 1402103004: Oilpan: Factor out GC-related enum definitions to BlinkGC.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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, 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698