| 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 TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 6 #define TEST_SHELL_DEVTOOLS_AGENT_H_ | 6 #define TEST_SHELL_DEVTOOLS_AGENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 8 #include "base/task.h" | 9 #include "base/task.h" |
| 9 | 10 |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" |
| 11 | 12 |
| 12 namespace WebKit { | 13 namespace WebKit { |
| 13 | 14 |
| 14 class WebDevToolsAgent; | 15 class WebDevToolsAgent; |
| 15 class WebView; | 16 class WebView; |
| 16 struct WebDevToolsMessageData; | 17 struct WebDevToolsMessageData; |
| 17 | 18 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 void frontendLoaded(); | 45 void frontendLoaded(); |
| 45 | 46 |
| 46 bool evaluateInWebInspector(long call_id, const std::string& script); | 47 bool evaluateInWebInspector(long call_id, const std::string& script); |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 void Call(const TestShellDevToolsCallArgs& args); | 50 void Call(const TestShellDevToolsCallArgs& args); |
| 50 void DelayedFrontendLoaded(); | 51 void DelayedFrontendLoaded(); |
| 51 static void DispatchMessageLoop(); | 52 static void DispatchMessageLoop(); |
| 52 WebKit::WebDevToolsAgent* GetWebAgent(); | 53 WebKit::WebDevToolsAgent* GetWebAgent(); |
| 53 | 54 |
| 54 ScopedRunnableMethodFactory<TestShellDevToolsAgent> call_method_factory_; | 55 base::WeakPtrFactory<TestShellDevToolsAgent> weak_factory_; |
| 55 TestShellDevToolsClient* dev_tools_client_; | 56 TestShellDevToolsClient* dev_tools_client_; |
| 56 int routing_id_; | 57 int routing_id_; |
| 57 WebKit::WebDevToolsAgent* web_dev_tools_agent_; | 58 WebKit::WebDevToolsAgent* web_dev_tools_agent_; |
| 58 WebKit::WebView* web_view_; | 59 WebKit::WebView* web_view_; |
| 59 | 60 |
| 60 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); | 61 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ | 64 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ |
| OLD | NEW |