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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8InspectorImpl.h

Issue 2200273002: [DevTools] Cleanup mute exceptions, usecounter and deprecations in v8_inspector API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2205913002
Patch Set: Created 4 years, 4 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride; 80 std::unique_ptr<V8StackTrace> createStackTrace(v8::Local<v8::StackTrace>) ov erride;
81 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override; 81 std::unique_ptr<V8StackTrace> captureStackTrace(bool fullStack) override;
82 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ) override; 82 void asyncTaskScheduled(const String16& taskName, void* task, bool recurring ) override;
83 void asyncTaskCanceled(void* task) override; 83 void asyncTaskCanceled(void* task) override;
84 void asyncTaskStarted(void* task) override; 84 void asyncTaskStarted(void* task) override;
85 void asyncTaskFinished(void* task) override; 85 void asyncTaskFinished(void* task) override;
86 void allAsyncTasksCanceled() override; 86 void allAsyncTasksCanceled() override;
87 87
88 void enableStackCapturingIfNeeded(); 88 void enableStackCapturingIfNeeded();
89 void disableStackCapturingIfNeeded(); 89 void disableStackCapturingIfNeeded();
90 void muteExceptions(int contextGroupId);
91 void unmuteExceptions(int contextGroupId);
90 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId); 92 V8ConsoleMessageStorage* ensureConsoleMessageStorage(int contextGroupId);
91 using ContextByIdMap = protocol::HashMap<int, std::unique_ptr<InspectedConte xt>>; 93 using ContextByIdMap = protocol::HashMap<int, std::unique_ptr<InspectedConte xt>>;
92 void discardInspectedContext(int contextGroupId, int contextId); 94 void discardInspectedContext(int contextGroupId, int contextId);
93 const ContextByIdMap* contextGroup(int contextGroupId); 95 const ContextByIdMap* contextGroup(int contextGroupId);
94 void disconnect(V8InspectorSessionImpl*); 96 void disconnect(V8InspectorSessionImpl*);
95 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId); 97 V8InspectorSessionImpl* sessionForContextGroup(int contextGroupId);
96 InspectedContext* getContext(int groupId, int contextId) const; 98 InspectedContext* getContext(int groupId, int contextId) const;
97 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId); 99 V8DebuggerAgentImpl* enabledDebuggerAgentForGroup(int contextGroupId);
98 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId); 100 V8RuntimeAgentImpl* enabledRuntimeAgentForGroup(int contextGroupId);
99 101
100 private: 102 private:
101 v8::Isolate* m_isolate; 103 v8::Isolate* m_isolate;
102 V8InspectorClient* m_client; 104 V8InspectorClient* m_client;
103 std::unique_ptr<V8Debugger> m_debugger; 105 std::unique_ptr<V8Debugger> m_debugger;
104 v8::Global<v8::Context> m_regexContext; 106 v8::Global<v8::Context> m_regexContext;
105 int m_capturingStackTracesCount; 107 int m_capturingStackTracesCount;
106 unsigned m_lastExceptionId; 108 unsigned m_lastExceptionId;
107 109
110 using MuteExceptionsMap = protocol::HashMap<int, int>;
111 MuteExceptionsMap m_muteExceptionsMap;
112
108 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI dMap>>; 113 using ContextsByGroupMap = protocol::HashMap<int, std::unique_ptr<ContextByI dMap>>;
109 ContextsByGroupMap m_contexts; 114 ContextsByGroupMap m_contexts;
110 115
111 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>; 116 using SessionMap = protocol::HashMap<int, V8InspectorSessionImpl*>;
112 SessionMap m_sessions; 117 SessionMap m_sessions;
113 118
114 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe ssageStorage>>; 119 using ConsoleStorageMap = protocol::HashMap<int, std::unique_ptr<V8ConsoleMe ssageStorage>>;
115 ConsoleStorageMap m_consoleStorageMap; 120 ConsoleStorageMap m_consoleStorageMap;
116 }; 121 };
117 122
118 } // namespace blink 123 } // namespace blink
119 124
120 125
121 #endif // V8InspectorImpl_h 126 #endif // V8InspectorImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698