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

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

Issue 19801002: Drop [LegacyImplementedInBaseClass] attribute from WindowTimers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 WorkerGlobalScope* self() { return this; } 83 WorkerGlobalScope* self() { return this; }
84 WorkerLocation* location() const; 84 WorkerLocation* location() const;
85 void close(); 85 void close();
86 86
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
88 88
89 // WorkerUtils 89 // WorkerUtils
90 virtual void importScripts(const Vector<String>& urls, ExceptionCode&); 90 virtual void importScripts(const Vector<String>& urls, ExceptionCode&);
91 WorkerNavigator* navigator() const; 91 WorkerNavigator* navigator() const;
92 92
93 // Timers
94 int setTimeout(PassOwnPtr<ScheduledAction>, int timeout);
95 void clearTimeout(int timeoutId);
96 int setInterval(PassOwnPtr<ScheduledAction>, int timeout);
97 void clearInterval(int timeoutId);
98
99 // ScriptExecutionContext 93 // ScriptExecutionContext
100 virtual WorkerEventQueue* eventQueue() const OVERRIDE; 94 virtual WorkerEventQueue* eventQueue() const OVERRIDE;
101 95
102 virtual bool isContextThread() const OVERRIDE; 96 virtual bool isContextThread() const OVERRIDE;
103 virtual bool isJSExecutionForbidden() const OVERRIDE; 97 virtual bool isJSExecutionForbidden() const OVERRIDE;
104 98
105 WorkerInspectorController* workerInspectorController() { return m_worker InspectorController.get(); } 99 WorkerInspectorController* workerInspectorController() { return m_worker InspectorController.get(); }
106 // These methods are used for GC marking. See JSWorkerGlobalScope::visit ChildrenVirtual(SlotVisitor&) in 100 // These methods are used for GC marking. See JSWorkerGlobalScope::visit ChildrenVirtual(SlotVisitor&) in
107 // JSWorkerGlobalScopeCustom.cpp. 101 // JSWorkerGlobalScopeCustom.cpp.
108 WorkerNavigator* optionalNavigator() const { return m_navigator.get(); } 102 WorkerNavigator* optionalNavigator() const { return m_navigator.get(); }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 176
183 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context) 177 inline WorkerGlobalScope* toWorkerGlobalScope(ScriptExecutionContext* context)
184 { 178 {
185 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope()) ; 179 ASSERT_WITH_SECURITY_IMPLICATION(!context || context->isWorkerGlobalScope()) ;
186 return static_cast<WorkerGlobalScope*>(context); 180 return static_cast<WorkerGlobalScope*>(context);
187 } 181 }
188 182
189 } // namespace WebCore 183 } // namespace WebCore
190 184
191 #endif // WorkerGlobalScope_h 185 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698