| OLD | NEW |
| 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 V8ContextInfo_h | 5 #ifndef V8ContextInfo_h |
| 6 #define V8ContextInfo_h | 6 #define V8ContextInfo_h |
| 7 | 7 |
| 8 #include "platform/inspector_protocol/InspectorProtocol.h" | 8 #include "platform/v8_inspector/String16.h" |
| 9 | 9 |
| 10 #include <v8.h> | 10 #include <v8.h> |
| 11 | 11 |
| 12 namespace v8_inspector { | 12 namespace v8_inspector { |
| 13 | 13 |
| 14 class V8ContextInfo { | 14 class V8ContextInfo { |
| 15 public: | 15 public: |
| 16 V8ContextInfo(v8::Local<v8::Context> context, int contextGroupId, const Stri
ng16& humanReadableName) | 16 V8ContextInfo(v8::Local<v8::Context> context, int contextGroupId, const Stri
ng16& humanReadableName) |
| 17 : context(context) | 17 : context(context) |
| 18 , contextGroupId(contextGroupId) | 18 , contextGroupId(contextGroupId) |
| 19 , humanReadableName(humanReadableName) | 19 , humanReadableName(humanReadableName) |
| 20 , hasMemoryOnConsole(false) | 20 , hasMemoryOnConsole(false) |
| 21 { | 21 { |
| 22 } | 22 } |
| 23 | 23 |
| 24 v8::Local<v8::Context> context; | 24 v8::Local<v8::Context> context; |
| 25 // Each v8::Context is a part of a group. The group id is used to find appro
priate | 25 // Each v8::Context is a part of a group. The group id is used to find appro
priate |
| 26 // V8DebuggerAgent to notify about events in the context. | 26 // V8DebuggerAgent to notify about events in the context. |
| 27 // |contextGroupId| must be non-0. | 27 // |contextGroupId| must be non-0. |
| 28 int contextGroupId; | 28 int contextGroupId; |
| 29 String16 humanReadableName; | 29 String16 humanReadableName; |
| 30 String16 origin; | 30 String16 origin; |
| 31 String16 auxData; | 31 String16 auxData; |
| 32 bool hasMemoryOnConsole; | 32 bool hasMemoryOnConsole; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace v8_inspector | 35 } // namespace v8_inspector |
| 36 | 36 |
| 37 #endif // V8ContextInfo_h | 37 #endif // V8ContextInfo_h |
| OLD | NEW |