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

Side by Side Diff: src/inspector/public/V8ContextInfo.h

Issue 2292053003: [inspector] Build inspector under v8_enable_inspector build flag. (Closed)
Patch Set: owners Created 4 years, 3 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_INSPECTOR_PUBLIC_V8CONTEXTINFO_H_
6 #define V8_INSPECTOR_PUBLIC_V8CONTEXTINFO_H_
7
8 #include "src/inspector/public/StringView.h"
9
10 #include <v8.h>
11
12 namespace v8_inspector {
13
14 class V8ContextInfo {
15 public:
16 V8ContextInfo(v8::Local<v8::Context> context, int contextGroupId,
17 const StringView& humanReadableName)
18 : context(context),
19 contextGroupId(contextGroupId),
20 humanReadableName(humanReadableName),
21 hasMemoryOnConsole(false) {}
22
23 v8::Local<v8::Context> context;
24 // Each v8::Context is a part of a group. The group id is used to find
25 // appropriate
26 // V8DebuggerAgent to notify about events in the context.
27 // |contextGroupId| must be non-0.
28 int contextGroupId;
29 StringView humanReadableName;
30 StringView origin;
31 StringView auxData;
32 bool hasMemoryOnConsole;
33
34 private:
35 // Disallow copying and allocating this one.
36 enum NotNullTagEnum { NotNullLiteral };
37 void* operator new(size_t) = delete;
38 void* operator new(size_t, NotNullTagEnum, void*) = delete;
39 void* operator new(size_t, void*) = delete;
40 V8ContextInfo(const V8ContextInfo&) = delete;
41 V8ContextInfo& operator=(const V8ContextInfo&) = delete;
42 };
43
44 } // namespace v8_inspector
45
46 #endif // V8_INSPECTOR_PUBLIC_V8CONTEXTINFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698