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

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: Add newline 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 WorkerThread* thread() const { return m_thread; } 88 WorkerThread* thread() const { return m_thread; }
89 89
90 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override final; // E xecutes the task on context's thread asynchronously. 90 virtual void postTask(PassOwnPtr<ExecutionContextTask>) override final; // E xecutes the task on context's thread asynchronously.
91 91
92 // WorkerGlobalScope 92 // WorkerGlobalScope
93 WorkerGlobalScope* self() { return this; } 93 WorkerGlobalScope* self() { return this; }
94 WorkerConsole* console(); 94 WorkerConsole* console();
95 WorkerLocation* location() const; 95 WorkerLocation* location() const;
96 void close(); 96 void close();
97 virtual void postInitialize() { };
kouhei (in TOK) 2014/10/22 07:28:28 Implement this in cpp file. It's better to avoid i
shimazu 2014/10/22 08:33:56 Done.
97 98
98 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 99 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
99 100
100 // WorkerUtils 101 // WorkerUtils
101 virtual void importScripts(const Vector<String>& urls, ExceptionState&); 102 virtual void importScripts(const Vector<String>& urls, ExceptionState&);
102 WorkerNavigator* navigator() const; 103 WorkerNavigator* navigator() const;
103 104
104 // ExecutionContextClient 105 // ExecutionContextClient
105 virtual WorkerEventQueue* eventQueue() const override final; 106 virtual WorkerEventQueue* eventQueue() const override final;
106 virtual SecurityContext& securityContext() override final { return *this; } 107 virtual SecurityContext& securityContext() override final { return *this; }
(...skipping 64 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/WorkerThread.h » ('j') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698