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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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
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 23 matching lines...) Expand all
34 34
35 #include "core/workers/AbstractWorker.h" 35 #include "core/workers/AbstractWorker.h"
36 #include "platform/Supplementable.h" 36 #include "platform/Supplementable.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class ExceptionState; 41 class ExceptionState;
42 42
43 class SharedWorker FINAL : public AbstractWorker, public WillBeHeapSupplementabl e<SharedWorker> { 43 class SharedWorker FINAL : public AbstractWorker, public WillBeHeapSupplementabl e<SharedWorker> {
44 DEFINE_WRAPPERTYPEINFO();
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
45 public: 46 public:
46 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&); 47 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
47 virtual ~SharedWorker(); 48 virtual ~SharedWorker();
48 49
49 MessagePort* port() const { return m_port.get(); } 50 MessagePort* port() const { return m_port.get(); }
50 51
51 virtual const AtomicString& interfaceName() const OVERRIDE; 52 virtual const AtomicString& interfaceName() const OVERRIDE;
52 53
53 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } 54 void setIsBeingConnected(bool b) { m_isBeingConnected = b; }
54 55
55 virtual bool hasPendingActivity() const OVERRIDE; 56 virtual bool hasPendingActivity() const OVERRIDE;
56 57
57 virtual void trace(Visitor*) OVERRIDE; 58 virtual void trace(Visitor*) OVERRIDE;
58 59
59 private: 60 private:
60 explicit SharedWorker(ExecutionContext*); 61 explicit SharedWorker(ExecutionContext*);
61 62
62 RefPtrWillBeMember<MessagePort> m_port; 63 RefPtrWillBeMember<MessagePort> m_port;
63 bool m_isBeingConnected; 64 bool m_isBeingConnected;
64 }; 65 };
65 66
66 } // namespace blink 67 } // namespace blink
67 68
68 #endif // SharedWorker_h 69 #endif // SharedWorker_h
OLDNEW
« no previous file with comments | « Source/core/workers/DedicatedWorkerGlobalScope.h ('k') | Source/core/workers/SharedWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698