| 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_AGENT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 6 #define TEST_SHELL_DEVTOOLS_AGENT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 7 |
| 8 #include <string> |
| 7 | 9 |
| 8 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 9 #include "base/task.h" | 11 #include "base/task.h" |
| 10 | 12 |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" |
| 12 | 14 |
| 13 namespace WebKit { | 15 namespace WebKit { |
| 14 | 16 |
| 15 class WebDevToolsAgent; | 17 class WebDevToolsAgent; |
| 16 class WebView; | 18 class WebView; |
| 17 struct WebDevToolsMessageData; | |
| 18 | 19 |
| 19 } // namespace WebKit | 20 } // namespace WebKit |
| 20 | 21 |
| 21 class TestShellDevToolsCallArgs; | 22 class TestShellDevToolsCallArgs; |
| 22 class TestShellDevToolsClient; | 23 class TestShellDevToolsClient; |
| 23 | 24 |
| 24 class TestShellDevToolsAgent : public WebKit::WebDevToolsAgentClient { | 25 class TestShellDevToolsAgent : public WebKit::WebDevToolsAgentClient { |
| 25 public: | 26 public: |
| 26 TestShellDevToolsAgent(); | 27 TestShellDevToolsAgent(); |
| 27 virtual ~TestShellDevToolsAgent(); | 28 virtual ~TestShellDevToolsAgent(); |
| 28 | 29 |
| 29 void SetWebView(WebKit::WebView* web_view); | 30 void SetWebView(WebKit::WebView* web_view); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 54 | 55 |
| 55 base::WeakPtrFactory<TestShellDevToolsAgent> weak_factory_; | 56 base::WeakPtrFactory<TestShellDevToolsAgent> weak_factory_; |
| 56 TestShellDevToolsClient* dev_tools_client_; | 57 TestShellDevToolsClient* dev_tools_client_; |
| 57 int routing_id_; | 58 int routing_id_; |
| 58 WebKit::WebDevToolsAgent* web_dev_tools_agent_; | 59 WebKit::WebDevToolsAgent* web_dev_tools_agent_; |
| 59 WebKit::WebView* web_view_; | 60 WebKit::WebView* web_view_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); | 62 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ | 65 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| OLD | NEW |