Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Side by Side Diff: webkit/tools/test_shell/test_shell_devtools_agent.h

Issue 8215002: base::Bind: Cleanup in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/simple_socket_stream_bridge.cc ('k') | webkit/tools/test_shell/test_shell_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698