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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*); 87 v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*);
88 88
89 void addCustomElementBinding(std::unique_ptr<V0CustomElementBinding>); 89 void addCustomElementBinding(std::unique_ptr<V0CustomElementBinding>);
90 90
91 V8DOMActivityLogger* activityLogger() const { return m_activityLogger; } 91 V8DOMActivityLogger* activityLogger() const { return m_activityLogger; }
92 void setActivityLogger(V8DOMActivityLogger* activityLogger) { 92 void setActivityLogger(V8DOMActivityLogger* activityLogger) {
93 m_activityLogger = activityLogger; 93 m_activityLogger = activityLogger;
94 } 94 }
95 95
96 v8::Local<v8::Value> compiledPrivateScript(String);
97 void setCompiledPrivateScript(String, v8::Local<v8::Value>);
98
99 private: 96 private:
100 V8PerContextData(v8::Local<v8::Context>); 97 V8PerContextData(v8::Local<v8::Context>);
101 98
102 v8::Local<v8::Object> createWrapperFromCacheSlowCase(const WrapperTypeInfo*); 99 v8::Local<v8::Object> createWrapperFromCacheSlowCase(const WrapperTypeInfo*);
103 v8::Local<v8::Function> constructorForTypeSlowCase(const WrapperTypeInfo*); 100 v8::Local<v8::Function> constructorForTypeSlowCase(const WrapperTypeInfo*);
104 101
105 v8::Isolate* m_isolate; 102 v8::Isolate* m_isolate;
106 103
107 // For each possible type of wrapper, we keep a boilerplate object. 104 // For each possible type of wrapper, we keep a boilerplate object.
108 // The boilerplate is used to create additional wrappers of the same type. 105 // The boilerplate is used to create additional wrappers of the same type.
109 typedef V8GlobalValueMap<const WrapperTypeInfo*, v8::Object, v8::kNotWeak> 106 typedef V8GlobalValueMap<const WrapperTypeInfo*, v8::Object, v8::kNotWeak>
110 WrapperBoilerplateMap; 107 WrapperBoilerplateMap;
111 WrapperBoilerplateMap m_wrapperBoilerplates; 108 WrapperBoilerplateMap m_wrapperBoilerplates;
112 109
113 typedef V8GlobalValueMap<const WrapperTypeInfo*, v8::Function, v8::kNotWeak> 110 typedef V8GlobalValueMap<const WrapperTypeInfo*, v8::Function, v8::kNotWeak>
114 ConstructorMap; 111 ConstructorMap;
115 ConstructorMap m_constructorMap; 112 ConstructorMap m_constructorMap;
116 113
117 std::unique_ptr<gin::ContextHolder> m_contextHolder; 114 std::unique_ptr<gin::ContextHolder> m_contextHolder;
118 115
119 ScopedPersistent<v8::Context> m_context; 116 ScopedPersistent<v8::Context> m_context;
120 ScopedPersistent<v8::Value> m_errorPrototype; 117 ScopedPersistent<v8::Value> m_errorPrototype;
121 118
122 typedef Vector<std::unique_ptr<V0CustomElementBinding>> 119 typedef Vector<std::unique_ptr<V0CustomElementBinding>>
123 V0CustomElementBindingList; 120 V0CustomElementBindingList;
124 V0CustomElementBindingList m_customElementBindings; 121 V0CustomElementBindingList m_customElementBindings;
125 122
126 // This is owned by a static hash map in V8DOMActivityLogger. 123 // This is owned by a static hash map in V8DOMActivityLogger.
127 V8DOMActivityLogger* m_activityLogger; 124 V8DOMActivityLogger* m_activityLogger;
128
129 V8GlobalValueMap<String, v8::Value, v8::kNotWeak> m_compiledPrivateScript;
130 }; 125 };
131 126
132 } // namespace blink 127 } // namespace blink
133 128
134 #endif // V8PerContextData_h 129 #endif // V8PerContextData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698