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 <string> | 9 #include <string> |
9 | 10 |
10 #include "base/callback.h" | 11 #include "base/callback.h" |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/common/console_message_level.h" | 14 #include "content/public/common/console_message_level.h" |
15 #include "content/public/renderer/render_frame_observer.h" | 15 #include "content/public/renderer/render_frame_observer.h" |
16 #include "third_party/WebKit/public/web/WebDevToolsAgentClient.h" | 16 #include "third_party/WebKit/public/web/WebDevToolsAgentClient.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 class WebDevToolsAgent; | 19 class WebDevToolsAgent; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void ContinueProgram(); | 86 void ContinueProgram(); |
87 void OnSetupDevToolsClient(const std::string& compatibility_script); | 87 void OnSetupDevToolsClient(const std::string& compatibility_script); |
88 | 88 |
89 bool is_attached_; | 89 bool is_attached_; |
90 bool is_devtools_client_; | 90 bool is_devtools_client_; |
91 bool paused_in_mouse_move_; | 91 bool paused_in_mouse_move_; |
92 bool paused_; | 92 bool paused_; |
93 RenderFrameImpl* frame_; | 93 RenderFrameImpl* frame_; |
94 base::Callback<void(int, int, const std::string&, const std::string&)> | 94 base::Callback<void(int, int, const std::string&, const std::string&)> |
95 send_protocol_message_callback_for_test_; | 95 send_protocol_message_callback_for_test_; |
96 scoped_ptr<DevToolsCPUThrottler> cpu_throttler_; | 96 std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_; |
97 | 97 |
98 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 98 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
99 }; | 99 }; |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
102 | 102 |
103 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 103 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
OLD | NEW |