| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Called from InspectorBackendDispatcher | 62 // Called from InspectorBackendDispatcher |
| 63 virtual void enable(ErrorString*) OVERRIDE; | 63 virtual void enable(ErrorString*) OVERRIDE; |
| 64 virtual void disable(ErrorString*) OVERRIDE; | 64 virtual void disable(ErrorString*) OVERRIDE; |
| 65 virtual void canInspectWorkers(ErrorString*, bool*) OVERRIDE; | 65 virtual void canInspectWorkers(ErrorString*, bool*) OVERRIDE; |
| 66 virtual void connectToWorker(ErrorString*, int workerId) OVERRIDE; | 66 virtual void connectToWorker(ErrorString*, int workerId) OVERRIDE; |
| 67 virtual void disconnectFromWorker(ErrorString*, int workerId) OVERRIDE; | 67 virtual void disconnectFromWorker(ErrorString*, int workerId) OVERRIDE; |
| 68 virtual void sendMessageToWorker(ErrorString*, int workerId, const RefPtr<JS
ONObject>& message) OVERRIDE; | 68 virtual void sendMessageToWorker(ErrorString*, int workerId, const RefPtr<JS
ONObject>& message) OVERRIDE; |
| 69 virtual void setAutoconnectToWorkers(ErrorString*, bool value) OVERRIDE; | 69 virtual void setAutoconnectToWorkers(ErrorString*, bool value) OVERRIDE; |
| 70 | 70 |
| 71 void setTracingSessionId(const String&); |
| 72 |
| 71 private: | 73 private: |
| 72 InspectorWorkerAgent(); | 74 InspectorWorkerAgent(); |
| 73 void createWorkerFrontendChannelsForExistingWorkers(); | 75 void createWorkerFrontendChannelsForExistingWorkers(); |
| 74 void createWorkerFrontendChannel(WorkerGlobalScopeProxy*, const String& url)
; | 76 void createWorkerFrontendChannel(WorkerGlobalScopeProxy*, const String& url)
; |
| 75 void destroyWorkerFrontendChannels(); | 77 void destroyWorkerFrontendChannels(); |
| 76 | 78 |
| 77 InspectorFrontend* m_inspectorFrontend; | 79 InspectorFrontend* m_inspectorFrontend; |
| 78 | 80 |
| 79 class WorkerFrontendChannel; | 81 class WorkerFrontendChannel; |
| 80 typedef HashMap<int, WorkerFrontendChannel*> WorkerChannels; | 82 typedef HashMap<int, WorkerFrontendChannel*> WorkerChannels; |
| 81 WorkerChannels m_idToChannel; | 83 WorkerChannels m_idToChannel; |
| 82 typedef HashMap<WorkerGlobalScopeProxy*, String> DedicatedWorkers; | 84 typedef HashMap<WorkerGlobalScopeProxy*, String> DedicatedWorkers; |
| 83 DedicatedWorkers m_dedicatedWorkers; | 85 DedicatedWorkers m_dedicatedWorkers; |
| 86 String m_tracingSessionId; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace blink | 89 } // namespace blink |
| 87 | 90 |
| 88 #endif // !defined(InspectorWorkerAgent_h) | 91 #endif // !defined(InspectorWorkerAgent_h) |
| OLD | NEW |