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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
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 26 matching lines...) Expand all
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> {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 46 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(SharedWorker);
47 public: 48 public:
48 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&); 49 static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
49 ~SharedWorker() override; 50 ~SharedWorker() override;
50 51
51 MessagePort* port() const { return m_port.get(); } 52 MessagePort* port() const { return m_port.get(); }
52 53
53 const AtomicString& interfaceName() const override; 54 const AtomicString& interfaceName() const override;
54 55
55 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } 56 void setIsBeingConnected(bool b) { m_isBeingConnected = b; }
56 57
57 bool hasPendingActivity() const override; 58 bool hasPendingActivity() const override;
58 59
59 DECLARE_VIRTUAL_TRACE(); 60 DECLARE_VIRTUAL_TRACE();
60 61
61 private: 62 private:
62 explicit SharedWorker(ExecutionContext*); 63 explicit SharedWorker(ExecutionContext*);
63 64
64 PersistentWillBeMember<MessagePort> m_port; 65 PersistentWillBeMember<MessagePort> m_port;
65 bool m_isBeingConnected; 66 bool m_isBeingConnected;
66 }; 67 };
67 68
68 } // namespace blink 69 } // namespace blink
69 70
70 #endif // SharedWorker_h 71 #endif // SharedWorker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698