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

Side by Side Diff: src/inspector/V8InspectorImpl.h

Issue 2323173004: [inspector] handle context destroyed after console.log (Closed)
Patch Set: fix formatting 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
« no previous file with comments | « src/inspector/V8ConsoleMessage.cpp ('k') | src/inspector/V8InspectorImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void asyncTaskStarted(void* task) override; 102 void asyncTaskStarted(void* task) override;
103 void asyncTaskFinished(void* task) override; 103 void asyncTaskFinished(void* task) override;
104 void allAsyncTasksCanceled() override; 104 void allAsyncTasksCanceled() override;
105 105
106 unsigned nextExceptionId() { return ++m_lastExceptionId; } 106 unsigned nextExceptionId() { return ++m_lastExceptionId; }
107 void enableStackCapturingIfNeeded(); 107 void enableStackCapturingIfNeeded();
108 void disableStackCapturingIfNeeded(); 108 void disableStackCapturingIfNeeded();
109 void muteExceptions(int contextGroupId); 109 void muteExceptions(int contextGroupId);
110 void unmuteExceptions(int contextGroupId); 110 void unmuteExceptions(int contextGroupId);
111 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId); 111 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId);
112 bool hasConsoleMessageStorage(int contextGroupId);
112 using ContextByIdMap = 113 using ContextByIdMap =
113 protocol::HashMap<int, std::unique_ptr<InspectedContext>>; 114 protocol::HashMap<int, std::unique_ptr<InspectedContext>>;
114 void discardInspectedContext(int contextGroupId, int contextId); 115 void discardInspectedContext(int contextGroupId, int contextId);
115 const ContextByIdMap* contextGroup(int contextGroupId); 116 const ContextByIdMap* contextGroup(int contextGroupId);
116 void disconnect(V8InspectorSessionImpl*); 117 void disconnect(V8InspectorSessionImpl*);
117 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); 118 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId);
118 InspectedContext* getContext(int groupId, int contextId) const; 119 InspectedContext* getContext(int groupId, int contextId) const;
119 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId); 120 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId);
120 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId); 121 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId);
121 122
(...skipping 16 matching lines...) Expand all
138 SessionMap m_sessions; 139 SessionMap m_sessions;
139 140
140 using ConsoleStorageMap = 141 using ConsoleStorageMap =
141 protocol::HashMap<int, std::unique_ptr<V8ConsoleMessageStorage>>; 142 protocol::HashMap<int, std::unique_ptr<V8ConsoleMessageStorage>>;
142 ConsoleStorageMap m_consoleStorageMap; 143 ConsoleStorageMap m_consoleStorageMap;
143 }; 144 };
144 145
145 } // namespace v8_inspector 146 } // namespace v8_inspector
146 147
147 #endif // V8_INSPECTOR_V8INSPECTORIMPL_H_ 148 #endif // V8_INSPECTOR_V8INSPECTORIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/V8ConsoleMessage.cpp ('k') | src/inspector/V8InspectorImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698