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

Side by Side Diff: third_party/WebKit/Source/core/inspector/PageConsoleAgent.h

Issue 1924663006: [DevTools] Move API methods from V8RuntimeAgent to V8InspectorSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@debugger-into-session
Patch Set: rebased Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 29 matching lines...) Expand all
40 class ConsoleMessage; 40 class ConsoleMessage;
41 class ConsoleMessageStorage; 41 class ConsoleMessageStorage;
42 class InspectedFrames; 42 class InspectedFrames;
43 class InspectorDOMAgent; 43 class InspectorDOMAgent;
44 class WorkerInspectorProxy; 44 class WorkerInspectorProxy;
45 class WorkerGlobalScopeProxy; 45 class WorkerGlobalScopeProxy;
46 46
47 class CORE_EXPORT PageConsoleAgent final : public InspectorConsoleAgent { 47 class CORE_EXPORT PageConsoleAgent final : public InspectorConsoleAgent {
48 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); 48 WTF_MAKE_NONCOPYABLE(PageConsoleAgent);
49 public: 49 public:
50 static PageConsoleAgent* create(V8RuntimeAgent* runtimeAgent, InspectorDOMAg ent* domAgent, InspectedFrames* inspectedFrames) 50 PageConsoleAgent(V8InspectorSession*, InspectorDOMAgent*, InspectedFrames*);
51 {
52 return new PageConsoleAgent(runtimeAgent, domAgent, inspectedFrames);
53 }
54 ~PageConsoleAgent() override; 51 ~PageConsoleAgent() override;
55 DECLARE_VIRTUAL_TRACE(); 52 DECLARE_VIRTUAL_TRACE();
56 53
57 void enable(ErrorString*) override; 54 void enable(ErrorString*) override;
58 void disable(ErrorString*) override; 55 void disable(ErrorString*) override;
59 56
60 void workerTerminated(WorkerInspectorProxy*); 57 void workerTerminated(WorkerInspectorProxy*);
61 void workerConsoleAgentEnabled(WorkerInspectorProxy*); 58 void workerConsoleAgentEnabled(WorkerInspectorProxy*);
62 59
63 void consoleMessagesCleared() override; 60 void consoleMessagesCleared() override;
64 61
65 protected: 62 protected:
66 ConsoleMessageStorage* messageStorage() override; 63 ConsoleMessageStorage* messageStorage() override;
67 64
68 void enableStackCapturingIfNeeded() override; 65 void enableStackCapturingIfNeeded() override;
69 void disableStackCapturingIfNeeded() override; 66 void disableStackCapturingIfNeeded() override;
70 67
71 private: 68 private:
72 PageConsoleAgent(V8RuntimeAgent*, InspectorDOMAgent*, InspectedFrames*);
73 void clearMessages(ErrorString*) override; 69 void clearMessages(ErrorString*) override;
74 70
75 Member<InspectorDOMAgent> m_inspectorDOMAgent; 71 Member<InspectorDOMAgent> m_inspectorDOMAgent;
76 Member<InspectedFrames> m_inspectedFrames; 72 Member<InspectedFrames> m_inspectedFrames;
77 using WorkerInspectorProxySet = HeapHashSet<Member<WorkerInspectorProxy>>; 73 using WorkerInspectorProxySet = HeapHashSet<Member<WorkerInspectorProxy>>;
78 WorkerInspectorProxySet m_workersWithEnabledConsole; 74 WorkerInspectorProxySet m_workersWithEnabledConsole;
79 75
80 static int s_enabledAgentCount; 76 static int s_enabledAgentCount;
81 }; 77 };
82 78
83 } // namespace blink 79 } // namespace blink
84 80
85 81
86 #endif // !defined(PageConsoleAgent_h) 82 #endif // !defined(PageConsoleAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698