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

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

Issue 16988003: Revert "Extract ContextLifecycleNotifier from ScriptExecutionContext." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/workers/WorkerContext.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual String userAgent(const KURL&) const; 72 virtual String userAgent(const KURL&) const;
73 73
74 virtual void disableEval(const String& errorMessage) OVERRIDE; 74 virtual void disableEval(const String& errorMessage) OVERRIDE;
75 75
76 WorkerScriptController* script() { return m_script.get(); } 76 WorkerScriptController* script() { return m_script.get(); }
77 void clearScript() { m_script.clear(); } 77 void clearScript() { m_script.clear(); }
78 void clearInspector(); 78 void clearInspector();
79 79
80 WorkerThread* thread() const { return m_thread; } 80 WorkerThread* thread() const { return m_thread; }
81 81
82 bool hasPendingActivity() const;
83
82 virtual void postTask(PassOwnPtr<Task>) OVERRIDE; // Executes the task o n context's thread asynchronously. 84 virtual void postTask(PassOwnPtr<Task>) OVERRIDE; // Executes the task o n context's thread asynchronously.
83 85
84 // WorkerGlobalScope 86 // WorkerGlobalScope
85 WorkerContext* self() { return this; } 87 WorkerContext* self() { return this; }
86 WorkerLocation* location() const; 88 WorkerLocation* location() const;
87 void close(); 89 void close();
88 90
89 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
90 92
91 // WorkerUtils 93 // WorkerUtils
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 OwnPtr<WorkerEventQueue> m_eventQueue; 181 OwnPtr<WorkerEventQueue> m_eventQueue;
180 182
181 RefPtr<SecurityOrigin> m_topOrigin; 183 RefPtr<SecurityOrigin> m_topOrigin;
182 184
183 double m_timeOrigin; 185 double m_timeOrigin;
184 }; 186 };
185 187
186 } // namespace WebCore 188 } // namespace WebCore
187 189
188 #endif // WorkerContext_h 190 #endif // WorkerContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/workers/WorkerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698