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

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

Issue 561093003: Remove worker support of Web SQL Database. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/frame/UseCounter.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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const KURL& url() const { return m_url; } 79 const KURL& url() const { return m_url; }
80 KURL completeURL(const String&) const; 80 KURL completeURL(const String&) const;
81 81
82 virtual String userAgent(const KURL&) const OVERRIDE FINAL; 82 virtual String userAgent(const KURL&) const OVERRIDE FINAL;
83 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; 83 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL;
84 84
85 WorkerScriptController* script() { return m_script.get(); } 85 WorkerScriptController* script() { return m_script.get(); }
86 void clearScript() { m_script.clear(); } 86 void clearScript() { m_script.clear(); }
87 void clearInspector(); 87 void clearInspector();
88 88
89 // FIXME: We can remove this interface when we remove openDatabaseSync.
90 class TerminationObserver {
91 public:
92 virtual ~TerminationObserver() { }
93 // The function is probably called in the main thread.
94 virtual void wasRequestedToTerminate() = 0;
95 };
96 void registerTerminationObserver(TerminationObserver*);
97 void wasRequestedToTerminate();
98
99 void dispose(); 89 void dispose();
100 90
101 WorkerThread* thread() const { return m_thread; } 91 WorkerThread* thread() const { return m_thread; }
102 92
103 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // E xecutes the task on context's thread asynchronously. 93 virtual void postTask(PassOwnPtr<ExecutionContextTask>) OVERRIDE FINAL; // E xecutes the task on context's thread asynchronously.
104 94
105 // WorkerGlobalScope 95 // WorkerGlobalScope
106 WorkerGlobalScope* self() { return this; } 96 WorkerGlobalScope* self() { return this; }
107 WorkerConsole* console(); 97 WorkerConsole* console();
108 WorkerLocation* location() const; 98 WorkerLocation* location() const;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 WorkerThread* m_thread; 165 WorkerThread* m_thread;
176 166
177 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController; 167 RefPtrWillBeMember<WorkerInspectorController> m_workerInspectorController;
178 bool m_closing; 168 bool m_closing;
179 169
180 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue; 170 OwnPtrWillBeMember<WorkerEventQueue> m_eventQueue;
181 171
182 OwnPtrWillBeMember<WorkerClients> m_workerClients; 172 OwnPtrWillBeMember<WorkerClients> m_workerClients;
183 173
184 double m_timeOrigin; 174 double m_timeOrigin;
185 TerminationObserver* m_terminationObserver;
186 175
187 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; 176 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage;
188 }; 177 };
189 178
190 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 179 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
191 180
192 } // namespace blink 181 } // namespace blink
193 182
194 #endif // WorkerGlobalScope_h 183 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | Source/core/workers/WorkerGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698