| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "content/browser/devtools/devtools_agent_host_impl.h" | 9 #include "content/browser/devtools/devtools_agent_host_impl.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const WorkerId& worker_id() const { return worker_id_; } | 58 const WorkerId& worker_id() const { return worker_id_; } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 friend class SharedWorkerDevToolsManagerTest; | 61 friend class SharedWorkerDevToolsManagerTest; |
| 62 | 62 |
| 63 void AttachToWorker(); | 63 void AttachToWorker(); |
| 64 void DetachFromWorker(); | 64 void DetachFromWorker(); |
| 65 void WorkerCreated(); | 65 void WorkerCreated(); |
| 66 void OnDispatchOnInspectorFrontend(const DevToolsMessageChunk& message); | 66 void OnDispatchOnInspectorFrontend(const DevToolsMessageChunk& message); |
| 67 | 67 |
| 68 DevToolsMessageChunkProcessor chunk_processor_; | |
| 69 WorkerState state_; | 68 WorkerState state_; |
| 70 WorkerId worker_id_; | 69 WorkerId worker_id_; |
| 71 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost); | 70 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentHost); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 } // namespace content | 73 } // namespace content |
| 75 | 74 |
| 76 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ | 75 #endif // CONTENT_BROWSER_DEVTOOLS_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |