| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 TEST_SHELL_DEVTOOLS_CLIENT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ |
| 6 #define TEST_SHELL_DEVTOOLS_CLIENT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 | 11 |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl
ient.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl
ient.h" |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 | 15 |
| 16 class WebDevToolsFrontend; | 16 class WebDevToolsFrontend; |
| 17 struct WebDevToolsMessageData; | |
| 18 | 17 |
| 19 } // namespace WebKit | 18 } // namespace WebKit |
| 20 | 19 |
| 21 class TestShellDevToolsCallArgs; | 20 class TestShellDevToolsCallArgs; |
| 22 class TestShellDevToolsAgent; | 21 class TestShellDevToolsAgent; |
| 23 | 22 |
| 24 class TestShellDevToolsClient: public WebKit::WebDevToolsFrontendClient { | 23 class TestShellDevToolsClient: public WebKit::WebDevToolsFrontendClient { |
| 25 | |
| 26 public: | 24 public: |
| 27 TestShellDevToolsClient(TestShellDevToolsAgent* agent, | 25 TestShellDevToolsClient(TestShellDevToolsAgent* agent, |
| 28 WebKit::WebView* web_view); | 26 WebKit::WebView* web_view); |
| 29 virtual ~TestShellDevToolsClient(); | 27 virtual ~TestShellDevToolsClient(); |
| 30 | 28 |
| 31 // WebDevToolsFrontendClient implementation | 29 // WebDevToolsFrontendClient implementation |
| 32 virtual void sendFrontendLoaded(); | 30 virtual void sendFrontendLoaded(); |
| 33 virtual void sendMessageToBackend(const WebKit::WebString& data); | 31 virtual void sendMessageToBackend(const WebKit::WebString& data); |
| 34 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command); | 32 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command); |
| 35 | 33 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 46 void Call(const TestShellDevToolsCallArgs& args); | 44 void Call(const TestShellDevToolsCallArgs& args); |
| 47 | 45 |
| 48 base::WeakPtrFactory<TestShellDevToolsClient> weak_factory_; | 46 base::WeakPtrFactory<TestShellDevToolsClient> weak_factory_; |
| 49 TestShellDevToolsAgent* dev_tools_agent_; | 47 TestShellDevToolsAgent* dev_tools_agent_; |
| 50 WebKit::WebView* web_view_; | 48 WebKit::WebView* web_view_; |
| 51 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; | 49 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; |
| 52 | 50 |
| 53 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); | 51 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); |
| 54 }; | 52 }; |
| 55 | 53 |
| 56 #endif // TEST_SHELL_DEVTOOLS_CLIENT_H_ | 54 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ |
| OLD | NEW |