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

Side by Side Diff: webkit/tools/test_shell/test_shell_devtools_client.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_CLIENT_H_ 5 #ifndef TEST_SHELL_DEVTOOLS_CLIENT_H_
6 #define TEST_SHELL_DEVTOOLS_CLIENT_H_ 6 #define TEST_SHELL_DEVTOOLS_CLIENT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h"
9 #include "base/task.h" 10 #include "base/task.h"
10 11
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl ient.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl ient.h"
12 13
13 namespace WebKit { 14 namespace WebKit {
14 15
15 class WebDevToolsFrontend; 16 class WebDevToolsFrontend;
16 struct WebDevToolsMessageData; 17 struct WebDevToolsMessageData;
17 18
18 } // namespace WebKit 19 } // namespace WebKit
(...skipping 18 matching lines...) Expand all
37 virtual void dockWindow(); 38 virtual void dockWindow();
38 virtual void undockWindow(); 39 virtual void undockWindow();
39 40
40 void AsyncCall(const TestShellDevToolsCallArgs& args); 41 void AsyncCall(const TestShellDevToolsCallArgs& args);
41 42
42 void all_messages_processed(); 43 void all_messages_processed();
43 44
44 private: 45 private:
45 void Call(const TestShellDevToolsCallArgs& args); 46 void Call(const TestShellDevToolsCallArgs& args);
46 47
47 ScopedRunnableMethodFactory<TestShellDevToolsClient> call_method_factory_; 48 base::WeakPtrFactory<TestShellDevToolsClient> weak_factory_;
48 TestShellDevToolsAgent* dev_tools_agent_; 49 TestShellDevToolsAgent* dev_tools_agent_;
49 WebKit::WebView* web_view_; 50 WebKit::WebView* web_view_;
50 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; 51 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); 53 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient);
53 }; 54 };
54 55
55 #endif // TEST_SHELL_DEVTOOLS_CLIENT_H_ 56 #endif // TEST_SHELL_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_agent.cc ('k') | webkit/tools/test_shell/test_shell_devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698