OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 13 matching lines...) Expand all Loading... |
24 * | 24 * |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/page/DOMTimer.h" | 28 #include "core/page/DOMTimer.h" |
29 | 29 |
30 #include "bindings/v8/ScheduledAction.h" | 30 #include "bindings/v8/ScheduledAction.h" |
31 #include "core/dom/ScriptExecutionContext.h" | 31 #include "core/dom/ScriptExecutionContext.h" |
32 #include "core/dom/WebCoreMemoryInstrumentation.h" | 32 #include "core/dom/WebCoreMemoryInstrumentation.h" |
33 #include "core/inspector/InspectorInstrumentation.h" | 33 #include "core/inspector/InspectorInstrumentation.h" |
34 #include <wtf/CurrentTime.h> | 34 #include "wtf/CurrentTime.h" |
35 #include <wtf/HashSet.h> | |
36 #include <wtf/StdLibExtras.h> | |
37 | 35 |
38 using namespace std; | 36 using namespace std; |
39 | 37 |
40 namespace WebCore { | 38 namespace WebCore { |
41 | 39 |
42 static const int maxIntervalForUserGestureForwarding = 1000; // One second match
es Gecko. | 40 static const int maxIntervalForUserGestureForwarding = 1000; // One second match
es Gecko. |
43 static const int maxTimerNestingLevel = 5; | 41 static const int maxTimerNestingLevel = 5; |
44 static const double oneMillisecond = 0.001; | 42 static const double oneMillisecond = 0.001; |
45 // Chromium uses a minimum timer interval of 4ms. We'd like to go | 43 // Chromium uses a minimum timer interval of 4ms. We'd like to go |
46 // lower; however, there are poorly coded websites out there which do | 44 // lower; however, there are poorly coded websites out there which do |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 194 |
197 void DOMTimer::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | 195 void DOMTimer::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
198 { | 196 { |
199 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | 197 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); |
200 SuspendableTimer::reportMemoryUsage(memoryObjectInfo); | 198 SuspendableTimer::reportMemoryUsage(memoryObjectInfo); |
201 info.addMember(m_action, "action"); | 199 info.addMember(m_action, "action"); |
202 info.addMember(m_userGestureToken, "userGestureToken"); | 200 info.addMember(m_userGestureToken, "userGestureToken"); |
203 } | 201 } |
204 | 202 |
205 } // namespace WebCore | 203 } // namespace WebCore |
OLD | NEW |