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 30 matching lines...) Expand all Loading... | |
41 class PageConsoleAgent; | 41 class PageConsoleAgent; |
42 class KURL; | 42 class KURL; |
43 class WorkerInspectorProxy; | 43 class WorkerInspectorProxy; |
44 | 44 |
45 typedef String ErrorString; | 45 typedef String ErrorString; |
46 | 46 |
47 class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<Inspect orWorkerAgent, InspectorFrontend::Worker>, public InspectorBackendDispatcher::Wo rkerCommandHandler { | 47 class CORE_EXPORT InspectorWorkerAgent final : public InspectorBaseAgent<Inspect orWorkerAgent, InspectorFrontend::Worker>, public InspectorBackendDispatcher::Wo rkerCommandHandler { |
48 public: | 48 public: |
49 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(PageConsoleAgent* ); | 49 static PassOwnPtrWillBeRawPtr<InspectorWorkerAgent> create(PageConsoleAgent* ); |
50 ~InspectorWorkerAgent() override; | 50 ~InspectorWorkerAgent() override; |
51 DECLARE_TRACE(); | |
51 | 52 |
52 void init() override; | 53 void init() override; |
53 void disable(ErrorString*) override; | 54 void disable(ErrorString*) override; |
54 void restore() override; | 55 void restore() override; |
55 | 56 |
56 // Called from InspectorInstrumentation | 57 // Called from InspectorInstrumentation |
57 bool shouldPauseDedicatedWorkerOnStart(); | 58 bool shouldPauseDedicatedWorkerOnStart(); |
58 void didStartWorker(WorkerInspectorProxy*, const KURL&); | 59 void didStartWorker(WorkerInspectorProxy*, const KURL&); |
59 void workerTerminated(WorkerInspectorProxy*); | 60 void workerTerminated(WorkerInspectorProxy*); |
60 | 61 |
(...skipping 13 matching lines...) Expand all Loading... | |
74 void destroyWorkerAgentClients(); | 75 void destroyWorkerAgentClients(); |
75 | 76 |
76 class WorkerInfo { | 77 class WorkerInfo { |
77 public: | 78 public: |
78 WorkerInfo() { } | 79 WorkerInfo() { } |
79 WorkerInfo(const String& url, const String& id) : url(url), id(id) { } | 80 WorkerInfo(const String& url, const String& id) : url(url), id(id) { } |
80 String url; | 81 String url; |
81 String id; | 82 String id; |
82 }; | 83 }; |
83 class WorkerAgentClient; | 84 class WorkerAgentClient; |
84 typedef HashMap<String, WorkerAgentClient*> WorkerClients; | 85 typedef WillBeHeapHashMap<String, OwnPtrWillBeMember<WorkerAgentClient>> Wor kerClients; |
85 WorkerClients m_idToClient; | 86 WorkerClients m_idToClient; |
86 typedef HashMap<WorkerInspectorProxy*, WorkerInfo> WorkerInfos; | 87 typedef HashMap<WorkerInspectorProxy*, WorkerInfo> WorkerInfos; |
87 WorkerInfos m_workerInfos; | 88 WorkerInfos m_workerInfos; |
88 String m_tracingSessionId; | 89 String m_tracingSessionId; |
89 PageConsoleAgent* m_consoleAgent; | 90 PageConsoleAgent* m_consoleAgent; |
haraken
2015/07/30 07:47:32
This should be a Member. (A raw pointer in an on-h
keishi
2015/08/03 09:35:56
Done.
| |
90 }; | 91 }; |
91 | 92 |
92 } // namespace blink | 93 } // namespace blink |
93 | 94 |
94 #endif // !defined(InspectorWorkerAgent_h) | 95 #endif // !defined(InspectorWorkerAgent_h) |
OLD | NEW |