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

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

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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 24 matching lines...) Expand all
35 #include "bindings/core/v8/ActiveScriptWrappable.h" 35 #include "bindings/core/v8/ActiveScriptWrappable.h"
36 #include "core/CoreExport.h" 36 #include "core/CoreExport.h"
37 #include "core/workers/AbstractWorker.h" 37 #include "core/workers/AbstractWorker.h"
38 #include "platform/Supplementable.h" 38 #include "platform/Supplementable.h"
39 #include "platform/heap/Handle.h" 39 #include "platform/heap/Handle.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ExceptionState; 43 class ExceptionState;
44 44
45 class CORE_EXPORT SharedWorker final : public AbstractWorker, 45 class CORE_EXPORT SharedWorker final
46 public Supplementable<SharedWorker>, 46 : public AbstractWorker,
47 public ActiveScriptWrappable { 47 public Supplementable<SharedWorker>,
48 public ActiveScriptWrappable<SharedWorker> {
48 DEFINE_WRAPPERTYPEINFO(); 49 DEFINE_WRAPPERTYPEINFO();
49 USING_GARBAGE_COLLECTED_MIXIN(SharedWorker); 50 USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
50 51
51 public: 52 public:
52 static SharedWorker* create(ExecutionContext*, 53 static SharedWorker* create(ExecutionContext*,
53 const String& url, 54 const String& url,
54 const String& name, 55 const String& name,
55 ExceptionState&); 56 ExceptionState&);
56 ~SharedWorker() override; 57 ~SharedWorker() override;
57 58
(...skipping 10 matching lines...) Expand all
68 private: 69 private:
69 explicit SharedWorker(ExecutionContext*); 70 explicit SharedWorker(ExecutionContext*);
70 71
71 Member<MessagePort> m_port; 72 Member<MessagePort> m_port;
72 bool m_isBeingConnected; 73 bool m_isBeingConnected;
73 }; 74 };
74 75
75 } // namespace blink 76 } // namespace blink
76 77
77 #endif // SharedWorker_h 78 #endif // SharedWorker_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698