OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 #include "core/workers/WorkerInspectorProxy.h" | 36 #include "core/workers/WorkerInspectorProxy.h" |
37 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
38 #include "wtf/HashMap.h" | 38 #include "wtf/HashMap.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 class InspectedFrames; | 41 class InspectedFrames; |
42 class PageConsoleAgent; | 42 class PageConsoleAgent; |
43 class KURL; | 43 class KURL; |
44 class WorkerInspectorProxy; | 44 class WorkerInspectorProxy; |
45 | 45 |
46 using ErrorString = String; | |
47 | |
48 class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<Inspect
orWorkerAgent, protocol::Frontend::Worker>, public protocol::Dispatcher::WorkerC
ommandHandler { | 46 class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<Inspect
orWorkerAgent, protocol::Frontend::Worker>, public protocol::Dispatcher::WorkerC
ommandHandler { |
49 WTF_MAKE_NONCOPYABLE(InspectorWorkerAgent); | 47 WTF_MAKE_NONCOPYABLE(InspectorWorkerAgent); |
50 public: | 48 public: |
51 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(InspectedFrames*,
PageConsoleAgent*); | 49 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(InspectedFrames*,
PageConsoleAgent*); |
52 ~InspectorWorkerAgent() override; | 50 ~InspectorWorkerAgent() override; |
53 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
54 | 52 |
55 void init() override; | 53 void init() override; |
56 void disable(ErrorString*) override; | 54 void disable(ErrorString*) override; |
57 void restore() override; | 55 void restore() override; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 WorkerClients m_idToClient; | 112 WorkerClients m_idToClient; |
115 using WorkerInfos = WillBeHeapHashMap<RawPtrWillBeMember<WorkerInspectorProx
y>, WorkerInfo>; | 113 using WorkerInfos = WillBeHeapHashMap<RawPtrWillBeMember<WorkerInspectorProx
y>, WorkerInfo>; |
116 WorkerInfos m_workerInfos; | 114 WorkerInfos m_workerInfos; |
117 String m_tracingSessionId; | 115 String m_tracingSessionId; |
118 RawPtrWillBeMember<PageConsoleAgent> m_consoleAgent; | 116 RawPtrWillBeMember<PageConsoleAgent> m_consoleAgent; |
119 }; | 117 }; |
120 | 118 |
121 } // namespace blink | 119 } // namespace blink |
122 | 120 |
123 #endif // !defined(InspectorWorkerAgent_h) | 121 #endif // !defined(InspectorWorkerAgent_h) |
OLD | NEW |