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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // Called on the Worker thread. | 28 // Called on the Worker thread. |
29 bool OnMessageReceived(const IPC::Message& message); | 29 bool OnMessageReceived(const IPC::Message& message); |
30 void SendDevToolsMessage(const blink::WebString&); | 30 void SendDevToolsMessage(const blink::WebString&); |
31 void SaveDevToolsAgentState(const blink::WebString& state); | 31 void SaveDevToolsAgentState(const blink::WebString& state); |
32 | 32 |
33 private: | 33 private: |
34 void OnAttach(const std::string& host_id); | 34 void OnAttach(const std::string& host_id); |
35 void OnReattach(const std::string& host_id, const std::string& state); | 35 void OnReattach(const std::string& host_id, const std::string& state); |
36 void OnDetach(); | 36 void OnDetach(); |
37 void OnDispatchOnInspectorBackend(const std::string& message); | 37 void OnDispatchOnInspectorBackend(const std::string& message); |
38 void OnResumeWorkerContext(); | |
39 | 38 |
40 bool Send(IPC::Message* message); | 39 bool Send(IPC::Message* message); |
41 const int route_id_; | 40 const int route_id_; |
42 blink::WebSharedWorker* webworker_; | 41 blink::WebSharedWorker* webworker_; |
43 | 42 |
44 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); | 43 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); |
45 }; | 44 }; |
46 | 45 |
47 } // namespace content | 46 } // namespace content |
48 | 47 |
49 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ | 48 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ |
OLD | NEW |