| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 void OnAttach(const std::string& host_id, int session_id); | 82 void OnAttach(const std::string& host_id, int session_id); |
| 83 void OnReattach(const std::string& host_id, | 83 void OnReattach(const std::string& host_id, |
| 84 int session_id, | 84 int session_id, |
| 85 const std::string& agent_state); | 85 const std::string& agent_state); |
| 86 void OnDetach(); | 86 void OnDetach(); |
| 87 void OnDispatchOnInspectorBackend(int session_id, | 87 void OnDispatchOnInspectorBackend(int session_id, |
| 88 int call_id, | 88 int call_id, |
| 89 const std::string& method, | 89 const std::string& method, |
| 90 const std::string& message); | 90 const std::string& message); |
| 91 void OnInspectElement(int x, int y); | 91 void OnInspectElement(int session_id, int x, int y); |
| 92 void OnRequestNewWindowACK(bool success); | 92 void OnRequestNewWindowACK(bool success); |
| 93 void ContinueProgram(); | 93 void ContinueProgram(); |
| 94 void OnSetupDevToolsClient(const std::string& compatibility_script); | 94 void OnSetupDevToolsClient(const std::string& compatibility_script); |
| 95 | 95 |
| 96 void GotManifest(int session_id, | 96 void GotManifest(int session_id, |
| 97 int command_id, | 97 int command_id, |
| 98 const GURL& manifest_url, | 98 const GURL& manifest_url, |
| 99 const Manifest& manifest, | 99 const Manifest& manifest, |
| 100 const ManifestDebugInfo& debug_info); | 100 const ManifestDebugInfo& debug_info); |
| 101 | 101 |
| 102 bool is_attached_; | 102 bool is_attached_; |
| 103 bool is_devtools_client_; | 103 bool is_devtools_client_; |
| 104 bool paused_in_mouse_move_; | 104 bool paused_in_mouse_move_; |
| 105 bool paused_; | 105 bool paused_; |
| 106 RenderFrameImpl* frame_; | 106 RenderFrameImpl* frame_; |
| 107 base::Callback<void(int, int, const std::string&, const std::string&)> | 107 base::Callback<void(int, int, const std::string&, const std::string&)> |
| 108 send_protocol_message_callback_for_test_; | 108 send_protocol_message_callback_for_test_; |
| 109 std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_; | 109 std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_; |
| 110 base::WeakPtrFactory<DevToolsAgent> weak_factory_; | 110 base::WeakPtrFactory<DevToolsAgent> weak_factory_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 112 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace content | 115 } // namespace content |
| 116 | 116 |
| 117 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 117 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
| OLD | NEW |