Index: src/inspector/inspected-context.h |
diff --git a/src/inspector/inspected-context.h b/src/inspector/inspected-context.h |
index d74de00ddfe3b2dd48c491e739326377ee1c162c..760eb0cbec06903e90c169d75679eeaf1396f623 100644 |
--- a/src/inspector/inspected-context.h |
+++ b/src/inspector/inspected-context.h |
@@ -5,6 +5,8 @@ |
#ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_ |
#define V8_INSPECTOR_INSPECTEDCONTEXT_H_ |
+#include <map> |
+ |
#include "src/base/macros.h" |
#include "src/inspector/string-16.h" |
@@ -30,8 +32,10 @@ class InspectedContext { |
String16 humanReadableName() const { return m_humanReadableName; } |
String16 auxData() const { return m_auxData; } |
- bool isReported() const { return m_reported; } |
- void setReported(bool reported) { m_reported = reported; } |
+ bool isReported(int session_id) { return m_reported[session_id]; } |
kozy
2017/06/01 09:43:45
auto it = m_reported.find(session_id);
return it !
dgozman
2017/06/01 21:04:59
Done.
|
+ void setReported(int session_id, bool reported) { |
+ m_reported[session_id] = reported; |
+ } |
v8::Isolate* isolate() const; |
V8InspectorImpl* inspector() const { return m_inspector; } |
@@ -51,7 +55,7 @@ class InspectedContext { |
const String16 m_origin; |
const String16 m_humanReadableName; |
const String16 m_auxData; |
- bool m_reported; |
+ std::map<int, bool> m_reported; |
kozy
2017/06/01 09:43:45
can it be a set of session_ids where context was r
dgozman
2017/06/01 16:06:48
Totally!
|
std::unique_ptr<InjectedScript> m_injectedScript; |
DISALLOW_COPY_AND_ASSIGN(InspectedContext); |