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

Side by Side Diff: include/v8-inspector.h

Issue 2690663003: [inspector] exposed ExecutionContextId getter by context (Closed)
Patch Set: code style tunning Created 3 years, 10 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
« no previous file with comments | « no previous file | src/inspector/v8-inspector-session-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project 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 V8_V8_INSPECTOR_H_ 5 #ifndef V8_V8_INSPECTOR_H_
6 #define V8_V8_INSPECTOR_H_ 6 #define V8_V8_INSPECTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <cctype> 9 #include <cctype>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 hasMemoryOnConsole(false) {} 78 hasMemoryOnConsole(false) {}
79 79
80 v8::Local<v8::Context> context; 80 v8::Local<v8::Context> context;
81 // Each v8::Context is a part of a group. The group id must be non-zero. 81 // Each v8::Context is a part of a group. The group id must be non-zero.
82 int contextGroupId; 82 int contextGroupId;
83 StringView humanReadableName; 83 StringView humanReadableName;
84 StringView origin; 84 StringView origin;
85 StringView auxData; 85 StringView auxData;
86 bool hasMemoryOnConsole; 86 bool hasMemoryOnConsole;
87 87
88 static int executionContextId(v8::Local<v8::Context> context);
89
88 private: 90 private:
89 // Disallow copying and allocating this one. 91 // Disallow copying and allocating this one.
90 enum NotNullTagEnum { NotNullLiteral }; 92 enum NotNullTagEnum { NotNullLiteral };
91 void* operator new(size_t) = delete; 93 void* operator new(size_t) = delete;
92 void* operator new(size_t, NotNullTagEnum, void*) = delete; 94 void* operator new(size_t, NotNullTagEnum, void*) = delete;
93 void* operator new(size_t, void*) = delete; 95 void* operator new(size_t, void*) = delete;
94 V8ContextInfo(const V8ContextInfo&) = delete; 96 V8ContextInfo(const V8ContextInfo&) = delete;
95 V8ContextInfo& operator=(const V8ContextInfo&) = delete; 97 V8ContextInfo& operator=(const V8ContextInfo&) = delete;
96 }; 98 };
97 99
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 260
259 // API methods. 261 // API methods.
260 virtual std::unique_ptr<V8StackTrace> createStackTrace( 262 virtual std::unique_ptr<V8StackTrace> createStackTrace(
261 v8::Local<v8::StackTrace>) = 0; 263 v8::Local<v8::StackTrace>) = 0;
262 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0; 264 virtual std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) = 0;
263 }; 265 };
264 266
265 } // namespace v8_inspector 267 } // namespace v8_inspector
266 268
267 #endif // V8_V8_INSPECTOR_H_ 269 #endif // V8_V8_INSPECTOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/inspector/v8-inspector-session-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698