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

Unified Diff: src/inspector/inspected-context.h

Issue 2906153002: [inspector] Support multiple sessions per context group (Closed)
Patch Set: using set per kozy@ Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/injected-script.cc ('k') | src/inspector/inspected-context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/inspected-context.h
diff --git a/src/inspector/inspected-context.h b/src/inspector/inspected-context.h
index d74de00ddfe3b2dd48c491e739326377ee1c162c..04246712c424ad555bf78a0e90ea3f355d63f84a 100644
--- a/src/inspector/inspected-context.h
+++ b/src/inspector/inspected-context.h
@@ -5,6 +5,9 @@
#ifndef V8_INSPECTOR_INSPECTEDCONTEXT_H_
#define V8_INSPECTOR_INSPECTEDCONTEXT_H_
+#include <map>
+#include <unordered_set>
+
#include "src/base/macros.h"
#include "src/inspector/string-16.h"
@@ -30,8 +33,8 @@ 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 sessionId) const;
+ void setReported(int sessionId, bool reported);
v8::Isolate* isolate() const;
V8InspectorImpl* inspector() const { return m_inspector; }
@@ -51,7 +54,7 @@ class InspectedContext {
const String16 m_origin;
const String16 m_humanReadableName;
const String16 m_auxData;
- bool m_reported;
+ std::unordered_set<int> m_reportedSessionIds;
std::unique_ptr<InjectedScript> m_injectedScript;
DISALLOW_COPY_AND_ASSIGN(InspectedContext);
« no previous file with comments | « src/inspector/injected-script.cc ('k') | src/inspector/inspected-context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698