OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DEVTOOLS_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/public/common/console_message_level.h" | 10 #include "content/public/common/console_message_level.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const std::string& message, | 38 const std::string& message, |
39 const std::string& post_state); | 39 const std::string& post_state); |
40 | 40 |
41 blink::WebDevToolsAgent* GetWebAgent(); | 41 blink::WebDevToolsAgent* GetWebAgent(); |
42 | 42 |
43 bool IsAttached(); | 43 bool IsAttached(); |
44 | 44 |
45 private: | 45 private: |
46 // RenderFrameObserver implementation. | 46 // RenderFrameObserver implementation. |
47 bool OnMessageReceived(const IPC::Message& message) override; | 47 bool OnMessageReceived(const IPC::Message& message) override; |
| 48 void WidgetWillClose() override; |
| 49 void FrameWillClose() override; |
48 | 50 |
49 // WebDevToolsAgentClient implementation. | 51 // WebDevToolsAgentClient implementation. |
50 void sendProtocolMessage(int call_id, | 52 void sendProtocolMessage(int call_id, |
51 const blink::WebString& response, | 53 const blink::WebString& response, |
52 const blink::WebString& state) override; | 54 const blink::WebString& state) override; |
53 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* | 55 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* |
54 createClientMessageLoop() override; | 56 createClientMessageLoop() override; |
55 void willEnterDebugLoop() override; | 57 void willEnterDebugLoop() override; |
56 void didExitDebugLoop() override; | 58 void didExitDebugLoop() override; |
57 | 59 |
(...skipping 15 matching lines...) Expand all Loading... |
73 bool is_devtools_client_; | 75 bool is_devtools_client_; |
74 bool paused_in_mouse_move_; | 76 bool paused_in_mouse_move_; |
75 RenderFrameImpl* frame_; | 77 RenderFrameImpl* frame_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 79 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace content | 82 } // namespace content |
81 | 83 |
82 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 84 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
OLD | NEW |