OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include <wtf/PassRefPtr.h> | 39 #include <wtf/PassRefPtr.h> |
40 #include <wtf/RefCounted.h> | 40 #include <wtf/RefCounted.h> |
41 #include <wtf/RefPtr.h> | 41 #include <wtf/RefPtr.h> |
42 #include <wtf/text/AtomicStringHash.h> | 42 #include <wtf/text/AtomicStringHash.h> |
43 | 43 |
44 namespace WebCore { | 44 namespace WebCore { |
45 | 45 |
46 class KURL; | 46 class KURL; |
47 class ScriptExecutionContext; | 47 class ScriptExecutionContext; |
48 | 48 |
49 class AbstractWorker : public RefCounted<AbstractWorker>, public ScriptWrapp
able, public ActiveDOMObject, public EventTarget { | 49 class AbstractWorker : public RefCounted<AbstractWorker>, public EventTarget
, public ActiveDOMObject { |
50 public: | 50 public: |
51 // EventTarget APIs | 51 // EventTarget APIs |
52 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE
{ return ActiveDOMObject::scriptExecutionContext(); } | 52 virtual ScriptExecutionContext* scriptExecutionContext() const OVERRIDE
{ return ActiveDOMObject::scriptExecutionContext(); } |
53 | 53 |
54 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 54 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
55 | 55 |
56 using RefCounted<AbstractWorker>::ref; | 56 using RefCounted<AbstractWorker>::ref; |
57 using RefCounted<AbstractWorker>::deref; | 57 using RefCounted<AbstractWorker>::deref; |
58 | 58 |
59 virtual void contextDestroyed() OVERRIDE; | 59 virtual void contextDestroyed() OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
70 virtual void derefEventTarget() OVERRIDE { deref(); } | 70 virtual void derefEventTarget() OVERRIDE { deref(); } |
71 virtual EventTargetData* eventTargetData() OVERRIDE; | 71 virtual EventTargetData* eventTargetData() OVERRIDE; |
72 virtual EventTargetData* ensureEventTargetData() OVERRIDE; | 72 virtual EventTargetData* ensureEventTargetData() OVERRIDE; |
73 | 73 |
74 EventTargetData m_eventTargetData; | 74 EventTargetData m_eventTargetData; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace WebCore | 77 } // namespace WebCore |
78 | 78 |
79 #endif // AbstractWorker_h | 79 #endif // AbstractWorker_h |
OLD | NEW |