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

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

Issue 1514523004: DevTools: remove V8DebuggerListener and ScriptDebuggerBase abstractions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed. Created 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef V8PerIsolateData_h 26 #ifndef V8PerIsolateData_h
27 #define V8PerIsolateData_h 27 #define V8PerIsolateData_h
28 28
29 #include "bindings/core/v8/ScopedPersistent.h" 29 #include "bindings/core/v8/ScopedPersistent.h"
30 #include "bindings/core/v8/ScriptState.h" 30 #include "bindings/core/v8/ScriptState.h"
31 #include "bindings/core/v8/V8HiddenValue.h" 31 #include "bindings/core/v8/V8HiddenValue.h"
32 #include "bindings/core/v8/WrapperTypeInfo.h" 32 #include "bindings/core/v8/WrapperTypeInfo.h"
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/inspector/ScriptDebuggerBase.h"
35 #include "gin/public/isolate_holder.h" 34 #include "gin/public/isolate_holder.h"
36 #include "gin/public/v8_idle_task_runner.h" 35 #include "gin/public/v8_idle_task_runner.h"
37 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
38 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
39 #include "wtf/OwnPtr.h" 38 #include "wtf/OwnPtr.h"
40 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
41 #include <v8.h> 40 #include <v8.h>
42 41
43 namespace blink { 42 namespace blink {
44 43
45 class DOMDataStore; 44 class DOMDataStore;
45 class MainThreadDebugger;
46 class StringCache; 46 class StringCache;
47 class V8Debugger; 47 class V8Debugger;
48 struct WrapperTypeInfo; 48 struct WrapperTypeInfo;
49 49
50 typedef WTF::Vector<DOMDataStore*> DOMDataStoreList; 50 typedef WTF::Vector<DOMDataStore*> DOMDataStoreList;
51 51
52 class CORE_EXPORT V8PerIsolateData { 52 class CORE_EXPORT V8PerIsolateData {
53 USING_FAST_MALLOC(V8PerIsolateData); 53 USING_FAST_MALLOC(V8PerIsolateData);
54 WTF_MAKE_NONCOPYABLE(V8PerIsolateData); 54 WTF_MAKE_NONCOPYABLE(V8PerIsolateData);
55 public: 55 public:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; } 116 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
117 117
118 // EndOfScopeTasks are run by V8RecursionScope when control is returning 118 // EndOfScopeTasks are run by V8RecursionScope when control is returning
119 // to C++ from script, after executing a script task (e.g. callback, 119 // to C++ from script, after executing a script task (e.g. callback,
120 // event) or microtasks (e.g. promise). This is explicitly needed for 120 // event) or microtasks (e.g. promise). This is explicitly needed for
121 // Indexed DB transactions per spec, but should in general be avoided. 121 // Indexed DB transactions per spec, but should in general be avoided.
122 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); 122 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>);
123 void runEndOfScopeTasks(); 123 void runEndOfScopeTasks();
124 void clearEndOfScopeTasks(); 124 void clearEndOfScopeTasks();
125 125
126 void setScriptDebugger(PassOwnPtr<ScriptDebuggerBase>); 126 void setScriptDebugger(PassOwnPtr<MainThreadDebugger>);
127 127
128 private: 128 private:
129 V8PerIsolateData(); 129 V8PerIsolateData();
130 ~V8PerIsolateData(); 130 ~V8PerIsolateData();
131 131
132 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> DOMTemplateM ap; 132 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> DOMTemplateM ap;
133 DOMTemplateMap& currentDOMTemplateMap(); 133 DOMTemplateMap& currentDOMTemplateMap();
134 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>, DOM TemplateMap&); 134 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>, DOM TemplateMap&);
135 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v 8::Local<v8::Value>, DOMTemplateMap&); 135 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v 8::Local<v8::Value>, DOMTemplateMap&);
136 136
(...skipping 14 matching lines...) Expand all
151 int m_recursionLevel; 151 int m_recursionLevel;
152 bool m_isHandlingRecursionLevelError; 152 bool m_isHandlingRecursionLevelError;
153 bool m_isReportingException; 153 bool m_isReportingException;
154 154
155 #if ENABLE(ASSERT) 155 #if ENABLE(ASSERT)
156 int m_internalScriptRecursionLevel; 156 int m_internalScriptRecursionLevel;
157 #endif 157 #endif
158 bool m_performingMicrotaskCheckpoint; 158 bool m_performingMicrotaskCheckpoint;
159 159
160 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; 160 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks;
161 OwnPtr<ScriptDebuggerBase> m_scriptDebugger; 161 OwnPtr<MainThreadDebugger> m_scriptDebugger;
162 }; 162 };
163 163
164 } // namespace blink 164 } // namespace blink
165 165
166 #endif // V8PerIsolateData_h 166 #endif // V8PerIsolateData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698