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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... 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 // 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 V8PrivateProperty_h 5 #ifndef V8PrivateProperty_h
6 #define V8PrivateProperty_h 6 #define V8PrivateProperty_h
7 7
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptPromiseProperties.h" 9 #include "bindings/core/v8/ScriptPromiseProperties.h"
10 #include "bindings/core/v8/V8BindingMacros.h" 10 #include "bindings/core/v8/V8BindingMacros.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 explicit Symbol(v8::Local<v8::Private> privateSymbol) 118 explicit Symbol(v8::Local<v8::Private> privateSymbol)
119 : m_privateSymbol(privateSymbol) {} 119 : m_privateSymbol(privateSymbol) {}
120 120
121 // Only friend classes are allowed to use this API. 121 // Only friend classes are allowed to use this API.
122 v8::Local<v8::Value> getFromMainWorld(ScriptState*, ScriptWrappable*); 122 v8::Local<v8::Value> getFromMainWorld(ScriptState*, ScriptWrappable*);
123 123
124 v8::Local<v8::Private> m_privateSymbol; 124 v8::Local<v8::Private> m_privateSymbol;
125 }; 125 };
126 126
127 static std::unique_ptr<V8PrivateProperty> create() { 127 static std::unique_ptr<V8PrivateProperty> create() {
128 return wrapUnique(new V8PrivateProperty()); 128 return WTF::wrapUnique(new V8PrivateProperty());
129 } 129 }
130 130
131 #define V8_PRIVATE_PROPERTY_DEFINE_GETTER(InterfaceName, KeyName) \ 131 #define V8_PRIVATE_PROPERTY_DEFINE_GETTER(InterfaceName, KeyName) \
132 static Symbol V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, KeyName)( \ 132 static Symbol V8_PRIVATE_PROPERTY_GETTER_NAME(InterfaceName, KeyName)( \
133 v8::Isolate * isolate) /* NOLINT(readability/naming/underscores) */ \ 133 v8::Isolate * isolate) /* NOLINT(readability/naming/underscores) */ \
134 { \ 134 { \
135 V8PrivateProperty* privateProp = \ 135 V8PrivateProperty* privateProp = \
136 V8PerIsolateData::from(isolate)->privateProperty(); \ 136 V8PerIsolateData::from(isolate)->privateProperty(); \
137 if (UNLIKELY(privateProp \ 137 if (UNLIKELY(privateProp \
138 ->V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName) \ 138 ->V8_PRIVATE_PROPERTY_MEMBER_NAME(InterfaceName, KeyName) \
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \ 170 #define V8_PRIVATE_PROPERTY_DECLARE_MEMBER(InterfaceName, KeyName) \
171 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME( \ 171 ScopedPersistent<v8::Private> V8_PRIVATE_PROPERTY_MEMBER_NAME( \
172 InterfaceName, KeyName); // NOLINT(readability/naming/underscores) 172 InterfaceName, KeyName); // NOLINT(readability/naming/underscores)
173 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER) 173 V8_PRIVATE_PROPERTY_FOR_EACH(V8_PRIVATE_PROPERTY_DECLARE_MEMBER)
174 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER 174 #undef V8_PRIVATE_PROPERTY_DECLARE_MEMBER
175 }; 175 };
176 176
177 } // namespace blink 177 } // namespace blink
178 178
179 #endif // V8PrivateProperty_h 179 #endif // V8PrivateProperty_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698