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_CLIENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <string> | 11 #include <string> |
11 | 12 |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "content/public/renderer/render_frame_observer.h" | 14 #include "content/public/renderer/render_frame_observer.h" |
15 #include "third_party/WebKit/public/web/WebDevToolsFrontendClient.h" | 15 #include "third_party/WebKit/public/web/WebDevToolsFrontendClient.h" |
16 | 16 |
17 namespace blink { | 17 namespace blink { |
18 class WebDevToolsFrontend; | 18 class WebDevToolsFrontend; |
19 class WebString; | 19 class WebString; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
(...skipping 17 matching lines...) Expand all Loading... |
41 | 41 |
42 // WebDevToolsFrontendClient implementation. | 42 // WebDevToolsFrontendClient implementation. |
43 void sendMessageToEmbedder(const blink::WebString&) override; | 43 void sendMessageToEmbedder(const blink::WebString&) override; |
44 | 44 |
45 bool isUnderTest() override; | 45 bool isUnderTest() override; |
46 | 46 |
47 void OnDispatchOnInspectorFrontend(const std::string& message, | 47 void OnDispatchOnInspectorFrontend(const std::string& message, |
48 uint32_t total_size); | 48 uint32_t total_size); |
49 | 49 |
50 std::string compatibility_script_; | 50 std::string compatibility_script_; |
51 scoped_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; | 51 std::unique_ptr<blink::WebDevToolsFrontend> web_tools_frontend_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); | 53 DISALLOW_COPY_AND_ASSIGN(DevToolsClient); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ | 58 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_CLIENT_H_ |
OLD | NEW |