| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const std::string& message, | 34 const std::string& message, |
| 35 const std::string& state_cookie); | 35 const std::string& state_cookie); |
| 36 | 36 |
| 37 bool OnMessageReceived(const IPC::Message& message) override; | 37 bool OnMessageReceived(const IPC::Message& message) override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 void OnAttach(const std::string& host_id, int session_id); | 40 void OnAttach(const std::string& host_id, int session_id); |
| 41 void OnReattach(const std::string& host_id, | 41 void OnReattach(const std::string& host_id, |
| 42 int session_id, | 42 int session_id, |
| 43 const std::string& state); | 43 const std::string& state); |
| 44 void OnDetach(); | 44 void OnDetach(int session_id); |
| 45 void OnDispatchOnInspectorBackend(int session_id, | 45 void OnDispatchOnInspectorBackend(int session_id, |
| 46 int call_id, | 46 int call_id, |
| 47 const std::string& method, | 47 const std::string& method, |
| 48 const std::string& message); | 48 const std::string& message); |
| 49 | 49 |
| 50 blink::WebEmbeddedWorker* webworker_; | 50 blink::WebEmbeddedWorker* webworker_; |
| 51 int route_id_; | 51 int route_id_; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent); | 53 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace content | 56 } // namespace content |
| 57 | 57 |
| 58 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ | 58 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |