| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 6 #define TEST_SHELL_DEVTOOLS_AGENT_H_ | 6 #define TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 | 9 |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgentClient.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgentClient.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // WebDevToolsAgentClient implementation. | 29 // WebDevToolsAgentClient implementation. |
| 30 virtual void sendMessageToFrontend( | 30 virtual void sendMessageToFrontend( |
| 31 const WebKit::WebDevToolsMessageData& data); | 31 const WebKit::WebDevToolsMessageData& data); |
| 32 virtual int hostIdentifier() { return routing_id_; } | 32 virtual int hostIdentifier() { return routing_id_; } |
| 33 virtual void forceRepaint(); | 33 virtual void forceRepaint(); |
| 34 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, | 34 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, |
| 35 bool enabled); | 35 bool enabled); |
| 36 virtual WebKit::WebCString injectedScriptSource(); | 36 virtual WebKit::WebCString injectedScriptSource(); |
| 37 virtual WebKit::WebCString injectedScriptDispatcherSource(); | 37 virtual WebKit::WebCString injectedScriptDispatcherSource(); |
| 38 virtual WebKit::WebCString debuggerScriptSource(); |
| 38 | 39 |
| 39 void AsyncCall(const TestShellDevToolsCallArgs& args); | 40 void AsyncCall(const TestShellDevToolsCallArgs& args); |
| 40 | 41 |
| 41 void attach(TestShellDevToolsClient* client); | 42 void attach(TestShellDevToolsClient* client); |
| 42 void detach(TestShellDevToolsClient* client); | 43 void detach(TestShellDevToolsClient* client); |
| 43 | 44 |
| 44 bool evaluateInWebInspector(long call_id, const std::string& script); | 45 bool evaluateInWebInspector(long call_id, const std::string& script); |
| 45 bool setTimelineProfilingEnabled(bool enable); | 46 bool setTimelineProfilingEnabled(bool enable); |
| 46 | 47 |
| 47 private: | 48 private: |
| 48 void Call(const TestShellDevToolsCallArgs& args); | 49 void Call(const TestShellDevToolsCallArgs& args); |
| 49 static void DispatchMessageLoop(); | 50 static void DispatchMessageLoop(); |
| 50 WebKit::WebDevToolsAgent* GetWebAgent(); | 51 WebKit::WebDevToolsAgent* GetWebAgent(); |
| 51 | 52 |
| 52 ScopedRunnableMethodFactory<TestShellDevToolsAgent> call_method_factory_; | 53 ScopedRunnableMethodFactory<TestShellDevToolsAgent> call_method_factory_; |
| 53 TestShellDevToolsClient* dev_tools_client_; | 54 TestShellDevToolsClient* dev_tools_client_; |
| 54 int routing_id_; | 55 int routing_id_; |
| 55 WebKit::WebDevToolsAgent* web_dev_tools_agent_; | 56 WebKit::WebDevToolsAgent* web_dev_tools_agent_; |
| 56 WebKit::WebView* web_view_; | 57 WebKit::WebView* web_view_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); | 59 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ | 62 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ |
| OLD | NEW |