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

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

Issue 2434763002: [wrapper-tracing] Bring remoteplayback up to date (Closed)
Patch Set: Created 4 years, 2 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 22 matching lines...) Expand all
33 33
34 #include "bindings/core/v8/WrapperTypeInfo.h" 34 #include "bindings/core/v8/WrapperTypeInfo.h"
35 #include "core/CoreExport.h" 35 #include "core/CoreExport.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
38 #include "wtf/TypeTraits.h" 38 #include "wtf/TypeTraits.h"
39 #include <v8.h> 39 #include <v8.h>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class CORE_EXPORT TraceWrapperBase {
Michael Lippautz 2016/10/19 12:20:21 We could use this super class in cases where the e
Marcel Hlopko 2016/10/19 15:08:17 Nit: TraceWrappersBase?
haraken 2016/10/19 15:31:43 Maybe we should unify TraceWrappers and TraceWrapp
Michael Lippautz 2016/10/19 15:44:34 Will do renaming, and inheriting changes to Script
44 WTF_MAKE_NONCOPYABLE(TraceWrapperBase);
45
46 public:
47 TraceWrapperBase() = default;
48
49 DECLARE_VIRTUAL_TRACE_WRAPPERS(){};
50 };
51
43 // ScriptWrappable provides a way to map from/to C++ DOM implementation to/from 52 // ScriptWrappable provides a way to map from/to C++ DOM implementation to/from
44 // JavaScript object (platform object). toV8() converts a ScriptWrappable to 53 // JavaScript object (platform object). toV8() converts a ScriptWrappable to
45 // a v8::Object and toScriptWrappable() converts a v8::Object back to 54 // a v8::Object and toScriptWrappable() converts a v8::Object back to
46 // a ScriptWrappable. v8::Object as platform object is called "wrapper object". 55 // a ScriptWrappable. v8::Object as platform object is called "wrapper object".
47 // The wrapepr object for the main world is stored in ScriptWrappable. Wrapper 56 // The wrapepr object for the main world is stored in ScriptWrappable. Wrapper
48 // objects for other worlds are stored in DOMWrapperMap. 57 // objects for other worlds are stored in DOMWrapperMap.
49 class CORE_EXPORT ScriptWrappable { 58 class CORE_EXPORT ScriptWrappable {
50 WTF_MAKE_NONCOPYABLE(ScriptWrappable); 59 WTF_MAKE_NONCOPYABLE(ScriptWrappable);
51 60
52 public: 61 public:
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 #define DECLARE_WRAPPERTYPEINFO() \ 207 #define DECLARE_WRAPPERTYPEINFO() \
199 public: \ 208 public: \
200 const WrapperTypeInfo* wrapperTypeInfo() const override; \ 209 const WrapperTypeInfo* wrapperTypeInfo() const override; \
201 \ 210 \
202 private: \ 211 private: \
203 typedef void end_of_define_wrappertypeinfo_not_reached_t 212 typedef void end_of_define_wrappertypeinfo_not_reached_t
204 213
205 } // namespace blink 214 } // namespace blink
206 215
207 #endif // ScriptWrappable_h 216 #endif // ScriptWrappable_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698