| 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_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ |
| 6 #define CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_CHILD_SHARED_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 19 matching lines...) Expand all Loading... |
| 30 void SendDevToolsMessage(int session_id, | 30 void SendDevToolsMessage(int session_id, |
| 31 int call_id, | 31 int call_id, |
| 32 const blink::WebString& message, | 32 const blink::WebString& message, |
| 33 const blink::WebString& post_state); | 33 const blink::WebString& post_state); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 void OnAttach(const std::string& host_id, int session_id); | 36 void OnAttach(const std::string& host_id, int session_id); |
| 37 void OnReattach(const std::string& host_id, | 37 void OnReattach(const std::string& host_id, |
| 38 int session_id, | 38 int session_id, |
| 39 const std::string& state); | 39 const std::string& state); |
| 40 void OnDetach(); | 40 void OnDetach(int session_id); |
| 41 void OnDispatchOnInspectorBackend( | 41 void OnDispatchOnInspectorBackend( |
| 42 int session_id, | 42 int session_id, |
| 43 int call_id, | 43 int call_id, |
| 44 const std::string& method, | 44 const std::string& method, |
| 45 const std::string& message); | 45 const std::string& message); |
| 46 | 46 |
| 47 bool Send(IPC::Message* message); | 47 bool Send(IPC::Message* message); |
| 48 const int route_id_; | 48 const int route_id_; |
| 49 blink::WebSharedWorker* webworker_; | 49 blink::WebSharedWorker* webworker_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); | 51 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace content | 54 } // namespace content |
| 55 | 55 |
| 56 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ | 56 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |