| 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_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ | 5 #ifndef CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ | 6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| 7 | 7 |
| 8 #include "content/browser/devtools/embedded_worker_devtools_manager.h" | 8 #include "content/browser/devtools/embedded_worker_devtools_manager.h" |
| 9 #include "content/browser/devtools/ipc_devtools_agent_host.h" | 9 #include "content/browser/devtools/ipc_devtools_agent_host.h" |
| 10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // IPC::Listener implementation. | 39 // IPC::Listener implementation. |
| 40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 41 | 41 |
| 42 void WorkerContextStarted(); | 42 void WorkerContextStarted(); |
| 43 void WorkerRestarted(WorkerId worker_id); | 43 void WorkerRestarted(WorkerId worker_id); |
| 44 void WorkerDestroyed(); | 44 void WorkerDestroyed(); |
| 45 bool Matches(const SharedWorkerInstance& other); | 45 bool Matches(const SharedWorkerInstance& other); |
| 46 bool Matches(const ServiceWorkerIdentifier& other); | 46 bool Matches(const ServiceWorkerIdentifier& other); |
| 47 | 47 |
| 48 virtual GURL GetURL(); |
| 49 virtual bool Close(); |
| 50 |
| 48 private: | 51 private: |
| 49 friend class EmbeddedWorkerDevToolsManagerTest; | 52 friend class EmbeddedWorkerDevToolsManagerTest; |
| 50 | 53 |
| 51 virtual ~EmbeddedWorkerDevToolsAgentHost(); | 54 virtual ~EmbeddedWorkerDevToolsAgentHost(); |
| 52 | 55 |
| 53 enum WorkerState { | 56 enum WorkerState { |
| 54 WORKER_UNINSPECTED, | 57 WORKER_UNINSPECTED, |
| 55 WORKER_INSPECTED, | 58 WORKER_INSPECTED, |
| 56 WORKER_TERMINATED, | 59 WORKER_TERMINATED, |
| 57 WORKER_PAUSED_FOR_DEBUG_ON_START, | 60 WORKER_PAUSED_FOR_DEBUG_ON_START, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 68 scoped_ptr<ServiceWorkerIdentifier> service_worker_; | 71 scoped_ptr<ServiceWorkerIdentifier> service_worker_; |
| 69 WorkerState state_; | 72 WorkerState state_; |
| 70 WorkerId worker_id_; | 73 WorkerId worker_id_; |
| 71 std::string saved_agent_state_; | 74 std::string saved_agent_state_; |
| 72 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost); | 75 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace content | 78 } // namespace content |
| 76 | 79 |
| 77 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ | 80 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ |
| OLD | NEW |