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

Side by Side Diff: src/inspector/inspected-context.h

Issue 2558913004: [inspector] Store interger in context embedder data instead of a string. (Closed)
Patch Set: review comments 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
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/inspected-context.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_INSPECTOR_INSPECTEDCONTEXT_H_ 5 #ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_
6 #define V8_INSPECTOR_INSPECTEDCONTEXT_H_ 6 #define V8_INSPECTOR_INSPECTEDCONTEXT_H_
7 7
8 #include "src/base/macros.h" 8 #include "src/base/macros.h"
9 #include "src/inspector/string-16.h" 9 #include "src/inspector/string-16.h"
10 10
11 #include "include/v8.h" 11 #include "include/v8.h"
12 12
13 namespace v8_inspector { 13 namespace v8_inspector {
14 14
15 class InjectedScript; 15 class InjectedScript;
16 class InjectedScriptHost; 16 class InjectedScriptHost;
17 class V8ContextInfo; 17 class V8ContextInfo;
18 class V8InspectorImpl; 18 class V8InspectorImpl;
19 19
20 class InspectedContext { 20 class InspectedContext {
21 public: 21 public:
22 ~InspectedContext(); 22 ~InspectedContext();
23 23
24 static int contextId(v8::Local<v8::Context>);
25
24 v8::Local<v8::Context> context() const; 26 v8::Local<v8::Context> context() const;
25 int contextId() const { return m_contextId; } 27 int contextId() const { return m_contextId; }
26 int contextGroupId() const { return m_contextGroupId; } 28 int contextGroupId() const { return m_contextGroupId; }
27 String16 origin() const { return m_origin; } 29 String16 origin() const { return m_origin; }
28 String16 humanReadableName() const { return m_humanReadableName; } 30 String16 humanReadableName() const { return m_humanReadableName; }
29 String16 auxData() const { return m_auxData; } 31 String16 auxData() const { return m_auxData; }
30 32
31 bool isReported() const { return m_reported; } 33 bool isReported() const { return m_reported; }
32 void setReported(bool reported) { m_reported = reported; } 34 void setReported(bool reported) { m_reported = reported; }
33 35
(...skipping 18 matching lines...) Expand all
52 bool m_reported; 54 bool m_reported;
53 std::unique_ptr<InjectedScript> m_injectedScript; 55 std::unique_ptr<InjectedScript> m_injectedScript;
54 v8::Global<v8::Object> m_console; 56 v8::Global<v8::Object> m_console;
55 57
56 DISALLOW_COPY_AND_ASSIGN(InspectedContext); 58 DISALLOW_COPY_AND_ASSIGN(InspectedContext);
57 }; 59 };
58 60
59 } // namespace v8_inspector 61 } // namespace v8_inspector
60 62
61 #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_ 63 #endif // V8_INSPECTOR_INSPECTEDCONTEXT_H_
OLDNEW
« no previous file with comments | « src/inspector/debugger_script_externs.js ('k') | src/inspector/inspected-context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698