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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.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 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 "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 "core/CoreExport.h" 10 #include "core/CoreExport.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 V(injectedScriptNative) \ 44 V(injectedScriptNative) \
45 SCRIPT_PROMISE_PROPERTIES(V, Promise) \ 45 SCRIPT_PROMISE_PROPERTIES(V, Promise) \
46 SCRIPT_PROMISE_PROPERTIES(V, Resolver) 46 SCRIPT_PROMISE_PROPERTIES(V, Resolver)
47 47
48 class CORE_EXPORT V8HiddenValue { 48 class CORE_EXPORT V8HiddenValue {
49 USING_FAST_MALLOC(V8HiddenValue); 49 USING_FAST_MALLOC(V8HiddenValue);
50 WTF_MAKE_NONCOPYABLE(V8HiddenValue); 50 WTF_MAKE_NONCOPYABLE(V8HiddenValue);
51 51
52 public: 52 public:
53 static std::unique_ptr<V8HiddenValue> create() { 53 static std::unique_ptr<V8HiddenValue> create() {
54 return wrapUnique(new V8HiddenValue()); 54 return WTF::wrapUnique(new V8HiddenValue());
55 } 55 }
56 56
57 #define V8_DECLARE_METHOD(name) \ 57 #define V8_DECLARE_METHOD(name) \
58 static v8::Local<v8::String> name(v8::Isolate* isolate); 58 static v8::Local<v8::String> name(v8::Isolate* isolate);
59 V8_HIDDEN_VALUES(V8_DECLARE_METHOD); 59 V8_HIDDEN_VALUES(V8_DECLARE_METHOD);
60 #undef V8_DECLARE_METHOD 60 #undef V8_DECLARE_METHOD
61 61
62 static v8::Local<v8::Value> getHiddenValue(ScriptState*, 62 static v8::Local<v8::Value> getHiddenValue(ScriptState*,
63 v8::Local<v8::Object>, 63 v8::Local<v8::Object>,
64 v8::Local<v8::String>); 64 v8::Local<v8::String>);
(...skipping 13 matching lines...) Expand all
78 V8HiddenValue() {} 78 V8HiddenValue() {}
79 79
80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name; 80 #define V8_DECLARE_FIELD(name) ScopedPersistent<v8::String> m_##name;
81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD); 81 V8_HIDDEN_VALUES(V8_DECLARE_FIELD);
82 #undef V8_DECLARE_FIELD 82 #undef V8_DECLARE_FIELD
83 }; 83 };
84 84
85 } // namespace blink 85 } // namespace blink
86 86
87 #endif // V8HiddenValue_h 87 #endif // V8HiddenValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698