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

Side by Side Diff: Source/core/workers/SharedWorker.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 | « Source/core/workers/AbstractWorker.idl ('k') | Source/core/workers/SharedWorker.idl » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef SharedWorker_h 32 #ifndef SharedWorker_h
33 #define SharedWorker_h 33 #define SharedWorker_h
34 34
35 #include "core/workers/AbstractWorker.h" 35 #include "core/workers/AbstractWorker.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class SharedWorker : public AbstractWorker { 39 class SharedWorker : public AbstractWorker, public ScriptWrappable {
40 public: 40 public:
41 static PassRefPtr<SharedWorker> create(ScriptExecutionContext*, const St ring& url, const String& name, ExceptionCode&); 41 static PassRefPtr<SharedWorker> create(ScriptExecutionContext*, const St ring& url, const String& name, ExceptionCode&);
42 virtual ~SharedWorker(); 42 virtual ~SharedWorker();
43 43
44 MessagePort* port() const { return m_port.get(); } 44 MessagePort* port() const { return m_port.get(); }
45 45
46 virtual const AtomicString& interfaceName() const OVERRIDE; 46 virtual const AtomicString& interfaceName() const OVERRIDE;
47 47
48 private: 48 private:
49 explicit SharedWorker(ScriptExecutionContext*); 49 explicit SharedWorker(ScriptExecutionContext*);
50 50
51 RefPtr<MessagePort> m_port; 51 RefPtr<MessagePort> m_port;
52 }; 52 };
53 53
54 } // namespace WebCore 54 } // namespace WebCore
55 55
56 #endif // SharedWorker_h 56 #endif // SharedWorker_h
OLDNEW
« no previous file with comments | « Source/core/workers/AbstractWorker.idl ('k') | Source/core/workers/SharedWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698