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

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

Issue 1441073006: Move throttling of background timers into the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last few changes Sami requested Created 5 years 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final; 113 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final;
114 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) final; 114 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn fo*, v8::Local<v8::Object> wrapper) final;
115 115
116 // ExecutionContextClient 116 // ExecutionContextClient
117 WorkerEventQueue* eventQueue() const final; 117 WorkerEventQueue* eventQueue() const final;
118 SecurityContext& securityContext() final { return *this; } 118 SecurityContext& securityContext() final { return *this; }
119 119
120 bool isContextThread() const final; 120 bool isContextThread() const final;
121 bool isJSExecutionForbidden() const final; 121 bool isJSExecutionForbidden() const final;
122 122
123 double timerAlignmentInterval() const final;
124 DOMTimerCoordinator* timers() final; 123 DOMTimerCoordinator* timers() final;
125 124
126 WorkerInspectorController* workerInspectorController() { return m_workerInsp ectorController.get(); } 125 WorkerInspectorController* workerInspectorController() { return m_workerInsp ectorController.get(); }
127 126
128 bool isClosing() { return m_closing; } 127 bool isClosing() { return m_closing; }
129 128
130 double timeOrigin() const { return m_timeOrigin; } 129 double timeOrigin() const { return m_timeOrigin; }
131 130
132 WorkerClients* clients() { return m_workerClients.get(); } 131 WorkerClients* clients() { return m_workerClients.get(); }
133 132
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 unsigned long m_workerExceptionUniqueIdentifier; 205 unsigned long m_workerExceptionUniqueIdentifier;
207 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages; 206 WillBeHeapHashMap<unsigned long, RefPtrWillBeMember<ConsoleMessage>> m_pendi ngMessages;
208 WillBeHeapListHashSet<RefPtrWillBeMember<V8AbstractEventListener>> m_eventLi steners; 207 WillBeHeapListHashSet<RefPtrWillBeMember<V8AbstractEventListener>> m_eventLi steners;
209 }; 208 };
210 209
211 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope()); 210 DEFINE_TYPE_CASTS(WorkerGlobalScope, ExecutionContext, context, context->isWorke rGlobalScope(), context.isWorkerGlobalScope());
212 211
213 } // namespace blink 212 } // namespace blink
214 213
215 #endif // WorkerGlobalScope_h 214 #endif // WorkerGlobalScope_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698