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

Side by Side Diff: Source/core/workers/WorkerGlobalScope.cpp

Issue 196543003: Remove modules/webdatabase dependency from core. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | Source/core/workers/WorkerThread.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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void WorkerGlobalScope::postTask(PassOwnPtr<ExecutionContextTask> task) 180 void WorkerGlobalScope::postTask(PassOwnPtr<ExecutionContextTask> task)
181 { 181 {
182 thread()->runLoop().postTask(task); 182 thread()->runLoop().postTask(task);
183 } 183 }
184 184
185 void WorkerGlobalScope::clearInspector() 185 void WorkerGlobalScope::clearInspector()
186 { 186 {
187 m_workerInspectorController.clear(); 187 m_workerInspectorController.clear();
188 } 188 }
189 189
190 void WorkerGlobalScope::willStopActiveDOMObjects()
191 {
192 lifecycleNotifier().notifyWillStopActiveDOMObjects();
193 }
194
190 void WorkerGlobalScope::dispose() 195 void WorkerGlobalScope::dispose()
191 { 196 {
192 ASSERT(thread()->isCurrentThread()); 197 ASSERT(thread()->isCurrentThread());
193 198
194 // Notify proxy that we are going away. This can free the WorkerThread objec t, so do not access it after this. 199 // Notify proxy that we are going away. This can free the WorkerThread objec t, so do not access it after this.
195 thread()->workerReportingProxy().workerGlobalScopeDestroyed(); 200 thread()->workerReportingProxy().workerGlobalScopeDestroyed();
196 201
197 clearScript(); 202 clearScript();
198 clearInspector(); 203 clearInspector();
199 setClient(0); 204 setClient(0);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 303
299 void WorkerGlobalScope::trace(Visitor* visitor) 304 void WorkerGlobalScope::trace(Visitor* visitor)
300 { 305 {
301 visitor->trace(m_console); 306 visitor->trace(m_console);
302 visitor->trace(m_location); 307 visitor->trace(m_location);
303 visitor->trace(m_navigator); 308 visitor->trace(m_navigator);
304 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor); 309 WillBeHeapSupplementable<WorkerGlobalScope>::trace(visitor);
305 } 310 }
306 311
307 } // namespace WebCore 312 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.h ('k') | Source/core/workers/WorkerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698