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

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

Issue 1187813010: Check whether the shadow page has been loaded in WebEmbeddedWorkerImpl::terminateWorkerContext(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 5 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
« no previous file with comments | « no previous file | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; 117 OwnPtr<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy;
118 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy; 118 OwnPtr<WorkerInspectorProxy> m_workerInspectorProxy;
119 119
120 // 'shadow page' - created to proxy loading requests from the worker. 120 // 'shadow page' - created to proxy loading requests from the worker.
121 // Both WebView and WebFrame objects are close()'ed (where they're 121 // Both WebView and WebFrame objects are close()'ed (where they're
122 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they 122 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they
123 // are guaranteed to exist while this object is around. 123 // are guaranteed to exist while this object is around.
124 WebView* m_webView; 124 WebView* m_webView;
125 WebLocalFrameImpl* m_mainFrame; 125 WebLocalFrameImpl* m_mainFrame;
126 126
127 bool m_loadingShadowPage;
127 bool m_askedToTerminate; 128 bool m_askedToTerminate;
128 129
129 enum WaitingForDebuggerState { 130 enum WaitingForDebuggerState {
130 WaitingForDebuggerBeforeLoadingScript, 131 WaitingForDebuggerBeforeLoadingScript,
131 WaitingForDebuggerAfterScriptLoaded, 132 WaitingForDebuggerAfterScriptLoaded,
132 NotWaitingForDebugger 133 NotWaitingForDebugger
133 }; 134 };
134 135
135 enum { 136 enum {
136 DontPauseAfterDownload, 137 DontPauseAfterDownload,
137 DoPauseAfterDownload, 138 DoPauseAfterDownload,
138 IsPausedAfterDownload 139 IsPausedAfterDownload
139 } m_pauseAfterDownloadState; 140 } m_pauseAfterDownloadState;
140 141
141 WaitingForDebuggerState m_waitingForDebuggerState; 142 WaitingForDebuggerState m_waitingForDebuggerState;
142 }; 143 };
143 144
144 } // namespace blink 145 } // namespace blink
145 146
146 #endif // WebEmbeddedWorkerImpl_h 147 #endif // WebEmbeddedWorkerImpl_h
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698