| 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_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ |
| 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 class EmbeddedWorkerDevToolsAgent : public IPC::Listener { | 24 class EmbeddedWorkerDevToolsAgent : public IPC::Listener { |
| 25 public: | 25 public: |
| 26 EmbeddedWorkerDevToolsAgent(blink::WebEmbeddedWorker* webworker, | 26 EmbeddedWorkerDevToolsAgent(blink::WebEmbeddedWorker* webworker, |
| 27 int route_id); | 27 int route_id); |
| 28 ~EmbeddedWorkerDevToolsAgent() override; | 28 ~EmbeddedWorkerDevToolsAgent() override; |
| 29 | 29 |
| 30 bool OnMessageReceived(const IPC::Message& message) override; | 30 bool OnMessageReceived(const IPC::Message& message) override; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 void OnAttach(const std::string& host_id, int session_id); | 33 void OnAttach(const std::string& host_id); |
| 34 void OnReattach(const std::string& host_id, | 34 void OnReattach(const std::string& host_id, const std::string& state); |
| 35 int session_id, | |
| 36 const std::string& state); | |
| 37 void OnDetach(); | 35 void OnDetach(); |
| 38 void OnDispatchOnInspectorBackend(int session_id, const std::string& message); | 36 void OnDispatchOnInspectorBackend(const std::string& message); |
| 39 | 37 |
| 40 blink::WebEmbeddedWorker* webworker_; | 38 blink::WebEmbeddedWorker* webworker_; |
| 41 int route_id_; | 39 int route_id_; |
| 42 | 40 |
| 43 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent); | 41 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent); |
| 44 }; | 42 }; |
| 45 | 43 |
| 46 } // namespace content | 44 } // namespace content |
| 47 | 45 |
| 48 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ | 46 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |