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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 { | 59 { |
60 DCHECK(!m_thread); | 60 DCHECK(!m_thread); |
61 } | 61 } |
62 | 62 |
63 void WorkerInspectorController::connectFrontend() | 63 void WorkerInspectorController::connectFrontend() |
64 { | 64 { |
65 if (m_session) | 65 if (m_session) |
66 return; | 66 return; |
67 | 67 |
68 // sessionId will be overwritten by WebDevToolsAgent::sendProtocolNotificati
on call. | 68 // sessionId will be overwritten by WebDevToolsAgent::sendProtocolNotificati
on call. |
69 m_session = new InspectorSession(this, nullptr, m_instrumentingAgents.get(),
0, true /* autoFlush */, m_debugger->debugger(), m_debugger->contextGroupId(),
nullptr); | 69 m_session = new InspectorSession(this, m_instrumentingAgents.get(), 0, true
/* autoFlush */, m_debugger->debugger(), m_debugger->contextGroupId(), nullptr); |
70 m_session->append(new InspectorLogAgent(m_thread->consoleMessageStorage())); | 70 m_session->append(new InspectorLogAgent(m_thread->consoleMessageStorage())); |
71 } | 71 } |
72 | 72 |
73 void WorkerInspectorController::disconnectFrontend() | 73 void WorkerInspectorController::disconnectFrontend() |
74 { | 74 { |
75 if (!m_session) | 75 if (!m_session) |
76 return; | 76 return; |
77 m_session->dispose(); | 77 m_session->dispose(); |
78 m_session.clear(); | 78 m_session.clear(); |
79 } | 79 } |
(...skipping 25 matching lines...) Expand all Loading... |
105 m_thread->workerReportingProxy().postMessageToPageInspector(response); | 105 m_thread->workerReportingProxy().postMessageToPageInspector(response); |
106 } | 106 } |
107 | 107 |
108 DEFINE_TRACE(WorkerInspectorController) | 108 DEFINE_TRACE(WorkerInspectorController) |
109 { | 109 { |
110 visitor->trace(m_instrumentingAgents); | 110 visitor->trace(m_instrumentingAgents); |
111 visitor->trace(m_session); | 111 visitor->trace(m_session); |
112 } | 112 } |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
OLD | NEW |