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