Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 34 | 34 |
| 35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "core/workers/AbstractWorker.h" | 36 #include "core/workers/AbstractWorker.h" |
| 37 #include "platform/Supplementable.h" | 37 #include "platform/Supplementable.h" |
| 38 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class ExceptionState; | 42 class ExceptionState; |
| 43 | 43 |
| 44 class CORE_EXPORT SharedWorker final : public AbstractWorker, public WillBeHeapS upplementable<SharedWorker> { | 44 class CORE_EXPORT SharedWorker final : public AbstractWorker, public WillBeHeapS upplementable<SharedWorker> { |
|
haraken
2015/08/13 06:09:23
You need to change WillBeSupplementable to HeapSup
peria
2015/08/13 06:35:28
Done.
| |
| 45 DEFINE_WRAPPERTYPEINFO(); | 45 DEFINE_WRAPPERTYPEINFO(); |
| 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); | 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); |
| 47 public: | 47 public: |
| 48 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&); | 48 static SharedWorker* create(ExecutionContext*, const String& url, const Stri ng& name, ExceptionState&); |
| 49 ~SharedWorker() override; | 49 ~SharedWorker() override; |
| 50 | 50 |
| 51 MessagePort* port() const { return m_port.get(); } | 51 MessagePort* port() const { return m_port.get(); } |
| 52 | 52 |
| 53 const AtomicString& interfaceName() const override; | 53 const AtomicString& interfaceName() const override; |
| 54 | 54 |
| 55 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } | 55 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } |
| 56 | 56 |
| 57 bool hasPendingActivity() const override; | 57 bool hasPendingActivity() const override; |
| 58 | 58 |
| 59 DECLARE_VIRTUAL_TRACE(); | 59 DECLARE_VIRTUAL_TRACE(); |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 explicit SharedWorker(ExecutionContext*); | 62 explicit SharedWorker(ExecutionContext*); |
| 63 | 63 |
| 64 PersistentWillBeMember<MessagePort> m_port; | 64 Member<MessagePort> m_port; |
| 65 bool m_isBeingConnected; | 65 bool m_isBeingConnected; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // SharedWorker_h | 70 #endif // SharedWorker_h |
| OLD | NEW |