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

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

Issue 980653002: Oilpan: disable conservative GCs during initial GC mixin construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add GC mixin test Created 5 years, 9 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
« no previous file with comments | « Source/core/svg/SVGUseElement.h ('k') | Source/platform/heap/Heap.h » ('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 24 matching lines...) Expand all
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 DEFINE_WRAPPERTYPEINFO();
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN_NESTED(SharedWorker, AbstractWorker);
46 public: 46 public:
47 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&);
48 virtual ~SharedWorker(); 48 virtual ~SharedWorker();
49 49
50 MessagePort* port() const { return m_port.get(); } 50 MessagePort* port() const { return m_port.get(); }
51 51
52 virtual const AtomicString& interfaceName() const override; 52 virtual const AtomicString& interfaceName() const override;
53 53
54 void setIsBeingConnected(bool b) { m_isBeingConnected = b; } 54 void setIsBeingConnected(bool b) { m_isBeingConnected = b; }
55 55
56 virtual bool hasPendingActivity() const override; 56 virtual bool hasPendingActivity() const override;
57 57
58 DECLARE_VIRTUAL_TRACE(); 58 DECLARE_VIRTUAL_TRACE();
59 59
60 private: 60 private:
61 explicit SharedWorker(ExecutionContext*); 61 explicit SharedWorker(ExecutionContext*);
62 62
63 RefPtrWillBeMember<MessagePort> m_port; 63 RefPtrWillBeMember<MessagePort> m_port;
64 bool m_isBeingConnected; 64 bool m_isBeingConnected;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // SharedWorker_h 69 #endif // SharedWorker_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUseElement.h ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698