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

Side by Side Diff: Source/web/WebSharedWorkerImpl.h

Issue 318023002: Oilpan: Prepare to make ExecutionContext GarbageCollectedMixin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void didReceiveScriptLoaderResponse(); 125 void didReceiveScriptLoaderResponse();
126 void onScriptLoaderFinished(); 126 void onScriptLoaderFinished();
127 127
128 static void connectTask(WebCore::ExecutionContext*, PassOwnPtr<WebMessagePor tChannel>); 128 static void connectTask(WebCore::ExecutionContext*, PassOwnPtr<WebMessagePor tChannel>);
129 // Tasks that are run on the main thread. 129 // Tasks that are run on the main thread.
130 void workerGlobalScopeClosedOnMainThread(); 130 void workerGlobalScopeClosedOnMainThread();
131 void workerGlobalScopeDestroyedOnMainThread(); 131 void workerGlobalScopeDestroyedOnMainThread();
132 132
133 // 'shadow page' - created to proxy loading requests from the worker. 133 // 'shadow page' - created to proxy loading requests from the worker.
134 RefPtr<WebCore::ExecutionContext> m_loadingDocument; 134 RefPtrWillBePersistent<WebCore::ExecutionContext> m_loadingDocument;
135 WebView* m_webView; 135 WebView* m_webView;
136 WebFrame* m_mainFrame; 136 WebFrame* m_mainFrame;
137 bool m_askedToTerminate; 137 bool m_askedToTerminate;
138 138
139 RefPtr<WebCore::WorkerThread> m_workerThread; 139 RefPtr<WebCore::WorkerThread> m_workerThread;
140 140
141 // This one's initialized and bound to the main thread. 141 // This one's initialized and bound to the main thread.
142 RefPtr<WeakReference<WebSharedWorkerClient> > m_client; 142 RefPtr<WeakReference<WebSharedWorkerClient> > m_client;
143 143
144 // Usually WeakPtr is created by WeakPtrFactory exposed by Client 144 // Usually WeakPtr is created by WeakPtrFactory exposed by Client
145 // class itself, but here it's implemented by Chrome so we create 145 // class itself, but here it's implemented by Chrome so we create
146 // our own WeakPtr. 146 // our own WeakPtr.
147 WeakPtr<WebSharedWorkerClient> m_clientWeakPtr; 147 WeakPtr<WebSharedWorkerClient> m_clientWeakPtr;
148 148
149 bool m_pauseWorkerContextOnStart; 149 bool m_pauseWorkerContextOnStart;
150 bool m_attachDevToolsOnStart; 150 bool m_attachDevToolsOnStart;
151 151
152 // Kept around only while main script loading is ongoing. 152 // Kept around only while main script loading is ongoing.
153 OwnPtr<Loader> m_mainScriptLoader; 153 OwnPtr<Loader> m_mainScriptLoader;
154 WebURL m_url; 154 WebURL m_url;
155 WebString m_name; 155 WebString m_name;
156 WebString m_contentSecurityPolicy; 156 WebString m_contentSecurityPolicy;
157 WebContentSecurityPolicyType m_policyType; 157 WebContentSecurityPolicyType m_policyType;
158 }; 158 };
159 159
160 } // namespace blink 160 } // namespace blink
161 161
162 #endif 162 #endif
OLDNEW
« Source/platform/heap/Handle.h ('K') | « Source/platform/heap/HeapTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698