| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. | 3 * Copyright (C) 2012 Google Inc. All Rights Reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 void didChangeTimerAlignmentInterval(); | 136 void didChangeTimerAlignmentInterval(); |
| 137 virtual double timerAlignmentInterval() const; | 137 virtual double timerAlignmentInterval() const; |
| 138 | 138 |
| 139 virtual EventQueue* eventQueue() const = 0; | 139 virtual EventQueue* eventQueue() const = 0; |
| 140 | 140 |
| 141 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; | 141 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; |
| 142 | 142 |
| 143 void setDatabaseContext(DatabaseContext*); | 143 void setDatabaseContext(DatabaseContext*); |
| 144 | 144 |
| 145 virtual void visitWith(Visitor*) const = 0; | 145 virtual void adjustAndMark(Visitor*) const = 0; |
| 146 | 146 |
| 147 void trace(Visitor*) { } | 147 void trace(Visitor*) { } |
| 148 virtual bool isAlive(Visitor*) = 0; | 148 virtual bool isAlive(Visitor*) = 0; |
| 149 | 149 |
| 150 protected: | 150 protected: |
| 151 class AddConsoleMessageTask : public Task { | 151 class AddConsoleMessageTask : public Task { |
| 152 public: | 152 public: |
| 153 static PassOwnPtr<AddConsoleMessageTask> create(MessageSource source, Me
ssageLevel level, const String& message) | 153 static PassOwnPtr<AddConsoleMessageTask> create(MessageSource source, Me
ssageLevel level, const String& message) |
| 154 { | 154 { |
| 155 return adoptPtr(new AddConsoleMessageTask(source, level, message)); | 155 return adoptPtr(new AddConsoleMessageTask(source, level, message)); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ActiveDOMObject::ReasonForSuspension m_reasonForSuspendingActiveDOMObjects; | 196 ActiveDOMObject::ReasonForSuspension m_reasonForSuspendingActiveDOMObjects; |
| 197 bool m_activeDOMObjectsAreStopped; | 197 bool m_activeDOMObjectsAreStopped; |
| 198 | 198 |
| 199 OwnPtr<PublicURLManager> m_publicURLManager; | 199 OwnPtr<PublicURLManager> m_publicURLManager; |
| 200 | 200 |
| 201 RefPtr<DatabaseContext> m_databaseContext; | 201 RefPtr<DatabaseContext> m_databaseContext; |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 template<> class TraceTrait<ScriptExecutionContext> { | 204 template<> class TraceTrait<ScriptExecutionContext> { |
| 205 public: | 205 public: |
| 206 static void visit(Visitor* v, const ScriptExecutionContext* self) { self->vi
sitWith(v); } | 206 static void mark(Visitor* v, const ScriptExecutionContext* self) { self->adj
ustAndMark(v); } |
| 207 | 207 |
| 208 static intptr_t getTypeMarker() { return 0; } | 208 static intptr_t getTypeMarker() { return 0; } |
| 209 | 209 |
| 210 #ifndef NDEBUG | 210 #ifndef NDEBUG |
| 211 static void checkTypeMarker(Visitor* visitor, const ScriptExecutionContext*
t) { } | 211 static void checkTypeMarker(Visitor* visitor, const ScriptExecutionContext*
t) { } |
| 212 #endif | 212 #endif |
| 213 }; | 213 }; |
| 214 | 214 |
| 215 template<> struct ObjectAliveTrait<ScriptExecutionContext*> { | 215 template<> struct ObjectAliveTrait<ScriptExecutionContext*> { |
| 216 static bool isAlive(Visitor* visitor, ScriptExecutionContext* obj) | 216 static bool isAlive(Visitor* visitor, ScriptExecutionContext* obj) |
| 217 { | 217 { |
| 218 return obj->isAlive(visitor); | 218 return obj->isAlive(visitor); |
| 219 } | 219 } |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 } // namespace WebCore | 222 } // namespace WebCore |
| 223 | 223 |
| 224 #endif // ScriptExecutionContext_h | 224 #endif // ScriptExecutionContext_h |
| OLD | NEW |