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

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

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 7 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 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ActiveScriptWrappable_h 5 #ifndef ActiveScriptWrappable_h
6 #define ActiveScriptWrappable_h 6 #define ActiveScriptWrappable_h
7 7
8 #include "core/CoreExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/wtf/Noncopyable.h" 10 #include "platform/wtf/Noncopyable.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 class Isolate; 13 class Isolate;
14 } 14 }
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class ScriptWrappable; 18 class ScriptWrappable;
19 class ScriptWrappableVisitor; 19 class ScriptWrappableVisitor;
20 20
21 /** 21 /**
22 * Classes deriving from ActiveScriptWrappable will be registered in a 22 * Classes deriving from ActiveScriptWrappable will be registered in a
23 * thread-specific list. They keep their wrappers and dependant objects alive 23 * thread-specific list. They keep their wrappers and dependant objects alive
24 * as long as they have pending activity. 24 * as long as they have pending activity.
25 */ 25 */
26 class CORE_EXPORT ActiveScriptWrappableBase : public GarbageCollectedMixin { 26 class PLATFORM_EXPORT ActiveScriptWrappableBase : public GarbageCollectedMixin {
27 WTF_MAKE_NONCOPYABLE(ActiveScriptWrappableBase); 27 WTF_MAKE_NONCOPYABLE(ActiveScriptWrappableBase);
28 28
29 public: 29 public:
30 ActiveScriptWrappableBase(); 30 ActiveScriptWrappableBase();
31 31
32 static void TraceActiveScriptWrappables(v8::Isolate*, 32 static void TraceActiveScriptWrappables(v8::Isolate*,
33 ScriptWrappableVisitor*); 33 ScriptWrappableVisitor*);
34 34
35 protected: 35 protected:
36 virtual bool IsContextDestroyed(ActiveScriptWrappableBase*) const = 0; 36 virtual bool IsContextDestroyed(ActiveScriptWrappableBase*) const = 0;
(...skipping 23 matching lines...) Expand all
60 60
61 ScriptWrappable* ToScriptWrappable( 61 ScriptWrappable* ToScriptWrappable(
62 ActiveScriptWrappableBase* object) const final { 62 ActiveScriptWrappableBase* object) const final {
63 return static_cast<T*>(object); 63 return static_cast<T*>(object);
64 } 64 }
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // ActiveScriptWrappable_h 69 #endif // ActiveScriptWrappable_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/bindings/ActiveScriptWrappable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698