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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h

Issue 1805843002: [v8 gc] Introduce a base class for all objects that can have pending activity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 4 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ActiveScriptWrappable_h
6 #define ActiveScriptWrappable_h
7
8 #include "core/CoreExport.h"
9 #include "wtf/Noncopyable.h"
10
11 namespace blink {
12
13 class ScriptWrappable;
14
15 /**
16 * Classes deriving from ActiveScriptWrappable will be registered in a
17 * thread-specific list. They keep their wrappers and dependant objects alive
18 * as long as they have pending activity.
19 */
20 class CORE_EXPORT ActiveScriptWrappable {
21 WTF_MAKE_NONCOPYABLE(ActiveScriptWrappable);
22 public:
23 explicit ActiveScriptWrappable(ScriptWrappable*);
24
25 virtual bool hasPendingActivity() const = 0;
26
27 ScriptWrappable* toScriptWrappable() const;
28
29 protected:
30 virtual ~ActiveScriptWrappable();
31
32 private:
33 ScriptWrappable* m_scriptWrappable;
34 };
35
36 } // namespace blink
37
38 #endif // ActiveScriptWrappable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698