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

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

Issue 17236004: Update AbstractWorker, Worker and SharedWorker to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move back ActiveDOMObject to AbstractWorker.h Created 7 years, 6 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
« no previous file with comments | « no previous file | Source/core/workers/AbstractWorker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/workers/AbstractWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698