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

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

Issue 2777943005: [Bindings] Move and remove some private symbols from V8HiddenValue (Closed)
Patch Set: work for comments Created 3 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 V8HiddenValue_h 5 #ifndef V8HiddenValue_h
6 #define V8HiddenValue_h 6 #define V8HiddenValue_h
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "bindings/core/v8/ScopedPersistent.h" 10 #include "bindings/core/v8/ScopedPersistent.h"
11 #include "bindings/core/v8/ScriptPromiseProperties.h" 11 #include "bindings/core/v8/ScriptPromiseProperties.h"
12 #include "core/CoreExport.h" 12 #include "core/CoreExport.h"
13 #include "v8/include/v8.h" 13 #include "v8/include/v8.h"
14 #include "wtf/Allocator.h" 14 #include "wtf/Allocator.h"
15 #include "wtf/PtrUtil.h" 15 #include "wtf/PtrUtil.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ScriptState; 19 class ScriptState;
20 class ScriptWrappable; 20 class ScriptWrappable;
21 21
22 #define V8_HIDDEN_VALUES(V) \ 22 #define V8_HIDDEN_VALUES(V) \
23 V(customElementAttachedCallback) \
24 V(customElementAttributeChangedCallback) \
25 V(customElementCreatedCallback) \
26 V(customElementDetachedCallback) \
27 V(customElementsRegistryMap) \
28 V(idbCursorRequest) \
29 V(internalBodyBuffer) \
30 V(internalBodyStream) \
31 V(requestInFetchEvent) \
32 V(testInterfaces) \
33 V(thenableHiddenPromise) \
34 V(toStringString) \
35 V(injectedScriptNative) \
36 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ 23 SCRIPT_PROMISE_PROPERTIES(V, Promise) \
37 SCRIPT_PROMISE_PROPERTIES(V, Resolver) 24 SCRIPT_PROMISE_PROPERTIES(V, Resolver)
38 25
39 class CORE_EXPORT V8HiddenValue { 26 class CORE_EXPORT V8HiddenValue {
40 USING_FAST_MALLOC(V8HiddenValue); 27 USING_FAST_MALLOC(V8HiddenValue);
41 WTF_MAKE_NONCOPYABLE(V8HiddenValue); 28 WTF_MAKE_NONCOPYABLE(V8HiddenValue);
42 29
43 public: 30 public:
44 static std::unique_ptr<V8HiddenValue> create() { 31 static std::unique_ptr<V8HiddenValue> create() {
45 return WTF::wrapUnique(new V8HiddenValue()); 32 return WTF::wrapUnique(new V8HiddenValue());
(...skipping 23 matching lines...) Expand all
69 V8HiddenValue() {} 56 V8HiddenValue() {}
70 57
71 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; 58 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name;
72 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); 59 V8_HIDDEN_VALUES(V8_DECLARE_FIELD);
73 #undef V8_DECLARE_FIELD 60 #undef V8_DECLARE_FIELD
74 }; 61 };
75 62
76 } // namespace blink 63 } // namespace blink
77 64
78 #endif // V8HiddenValue_h 65 #endif // V8HiddenValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698