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

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

Issue 657213004: ServiceWorker: Issue a warning after initial execution of worker script (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporate reviews Created 6 years, 2 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
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 KURL completeURL(const String&) const; 77 KURL completeURL(const String&) const;
78 78
79 virtual String userAgent(const KURL&) const override final; 79 virtual String userAgent(const KURL&) const override final;
80 virtual void disableEval(const String& errorMessage) override final; 80 virtual void disableEval(const String& errorMessage) override final;
81 81
82 WorkerScriptController* script() { return m_script.get(); } 82 WorkerScriptController* script() { return m_script.get(); }
83 void clearScript() { m_script.clear(); } 83 void clearScript() { m_script.clear(); }
84 void clearInspector(); 84 void clearInspector();
85 85
86 void dispose(); 86 void dispose();
87 virtual void didEvaluateWorkerScript();
kouhei (in TOK) 2014/10/22 09:11:47 Nit: above dispose().
shimazu 2014/10/23 00:52:22 Done.
87 88
88 WorkerThread* thread() const { return m_thread; } 89 WorkerThread* thread() const { return m_thread; }
89 90
90 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override final; // E xecutes the task on context's thread asynchronously. 91 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override final; // E xecutes the task on context's thread asynchronously.
91 92
92 // WorkerGlobalScope 93 // WorkerGlobalScope
93 WorkerGlobalScope* self() { return this; } 94 WorkerGlobalScope* self() { return this; }
94 WorkerConsole* console(); 95 WorkerConsole* console();
95 WorkerLocation* location() const; 96 WorkerLocation* location() const;
96 void close(); 97 void close();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 double m_timeOrigin; 172 double m_timeOrigin;
172 173
173 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage; 174 OwnPtrWillBeMember<ConsoleMessageStorage> m_messageStorage;
174 }; 175 };
175 176
176 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 177 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
177 178
178 } // namespace blink 179 } // namespace blink
179 180
180 #endif // WorkerGlobalScope_h 181 #endif // WorkerGlobalScope_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/workers/WorkerGlobalScope.cpp » ('j') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698