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

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

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/dom/ContextLifecycleNotifier.cpp ('k') | Source/core/workers/WorkerGlobalScope.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, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const KURL& url() const { return m_url; } 74 const KURL& url() const { return m_url; }
75 KURL completeURL(const String&) const; 75 KURL completeURL(const String&) const;
76 76
77 virtual String userAgent(const KURL&) const OVERRIDE FINAL; 77 virtual String userAgent(const KURL&) const OVERRIDE FINAL;
78 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; 78 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL;
79 79
80 WorkerScriptController* script() { return m_script.get(); } 80 WorkerScriptController* script() { return m_script.get(); }
81 void clearScript() { m_script.clear(); } 81 void clearScript() { m_script.clear(); }
82 void clearInspector(); 82 void clearInspector();
83 83
84 void willStopActiveDOMObjects();
84 void dispose(); 85 void dispose();
85 86
86 WorkerThread* thread() const { return m_thread; } 87 WorkerThread* thread() const { return m_thread; }
87 88
88 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // Executes the task on context's thread asynchronously. 89 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // Executes the task on context's thread asynchronously.
89 90
90 // WorkerGlobalScope 91 // WorkerGlobalScope
91 WorkerGlobalScope* self() { return this; } 92 WorkerGlobalScope* self() { return this; }
92 WorkerConsole* console(); 93 WorkerConsole* console();
93 WorkerLocation* location() const; 94 WorkerLocation* location() const;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 OwnPtr<WorkerClients> m_workerClients; 167 OwnPtr<WorkerClients> m_workerClients;
167 168
168 double m_timeOrigin; 169 double m_timeOrigin;
169 }; 170 };
170 171
171 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 172 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
172 173
173 } // namespace WebCore 174 } // namespace WebCore
174 175
175 #endif // WorkerGlobalScope_h 176 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/dom/ContextLifecycleNotifier.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698