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

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

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerThreadableLoader_h 31 #ifndef WorkerThreadableLoader_h
32 #define WorkerThreadableLoader_h 32 #define WorkerThreadableLoader_h
33 33
34 #include "core/loader/ThreadableLoader.h" 34 #include "core/loader/ThreadableLoader.h"
35 #include "core/loader/ThreadableLoaderClient.h" 35 #include "core/loader/ThreadableLoaderClient.h"
36 #include "core/loader/ThreadableLoaderClientWrapper.h" 36 #include "core/loader/ThreadableLoaderClientWrapper.h"
37 #include "heap/Handle.h"
37 #include "wtf/PassOwnPtr.h" 38 #include "wtf/PassOwnPtr.h"
38 #include "wtf/PassRefPtr.h" 39 #include "wtf/PassRefPtr.h"
39 #include "wtf/RefCounted.h" 40 #include "wtf/RefCounted.h"
40 #include "wtf/RefPtr.h" 41 #include "wtf/RefPtr.h"
41 #include "wtf/Threading.h" 42 #include "wtf/Threading.h"
42 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
43 44
44 namespace WebCore { 45 namespace WebCore {
45 46
46 class ResourceError; 47 class ResourceError;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // ThreadableLoaderClientWrapper is to be used on the worker context thread. 127 // ThreadableLoaderClientWrapper is to be used on the worker context thread.
127 // The ref counting is done on either thread. 128 // The ref counting is done on either thread.
128 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper; 129 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper;
129 130
130 // Used on the worker context thread. 131 // Used on the worker context thread.
131 WorkerLoaderProxy& m_loaderProxy; 132 WorkerLoaderProxy& m_loaderProxy;
132 }; 133 };
133 134
134 WorkerThreadableLoader(WorkerGlobalScope*, PassRefPtr<ThreadableLoaderCl ientWrapper>, PassOwnPtr<ThreadableLoaderClient>, const ResourceRequest&, const ThreadableLoaderOptions&); 135 WorkerThreadableLoader(WorkerGlobalScope*, PassRefPtr<ThreadableLoaderCl ientWrapper>, PassOwnPtr<ThreadableLoaderClient>, const ResourceRequest&, const ThreadableLoaderOptions&);
135 136
136 RefPtr<WorkerGlobalScope> m_workerGlobalScope; 137 RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope;
137 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper; 138 RefPtr<ThreadableLoaderClientWrapper> m_workerClientWrapper;
138 MainThreadBridge& m_bridge; 139 MainThreadBridge& m_bridge;
139 }; 140 };
140 141
141 } // namespace WebCore 142 } // namespace WebCore
142 143
143 #endif // WorkerThreadableLoader_h 144 #endif // WorkerThreadableLoader_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/WorkerScriptController.cpp ('k') | Source/core/workers/DedicatedWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698