| 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 WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ | 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 void attach(TestShellDevToolsClient* client); | 44 void attach(TestShellDevToolsClient* client); |
| 45 void detach(); | 45 void detach(); |
| 46 void frontendLoaded(); | 46 void frontendLoaded(); |
| 47 | 47 |
| 48 bool evaluateInWebInspector(long call_id, const std::string& script); | 48 bool evaluateInWebInspector(long call_id, const std::string& script); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void Call(const TestShellDevToolsCallArgs& args); | 51 void Call(const TestShellDevToolsCallArgs& args); |
| 52 void DelayedFrontendLoaded(); | 52 void DelayedFrontendLoaded(); |
| 53 static void DispatchMessageLoop(); | |
| 54 WebKit::WebDevToolsAgent* GetWebAgent(); | 53 WebKit::WebDevToolsAgent* GetWebAgent(); |
| 55 | 54 |
| 56 base::WeakPtrFactory<TestShellDevToolsAgent> weak_factory_; | 55 base::WeakPtrFactory<TestShellDevToolsAgent> weak_factory_; |
| 57 TestShellDevToolsClient* dev_tools_client_; | 56 TestShellDevToolsClient* dev_tools_client_; |
| 58 int routing_id_; | 57 int routing_id_; |
| 59 WebKit::WebDevToolsAgent* web_dev_tools_agent_; | 58 WebKit::WebDevToolsAgent* web_dev_tools_agent_; |
| 60 WebKit::WebView* web_view_; | 59 WebKit::WebView* web_view_; |
| 61 | 60 |
| 62 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); | 61 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); |
| 63 }; | 62 }; |
| 64 | 63 |
| 65 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ | 64 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_AGENT_H_ |
| OLD | NEW |