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

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

Issue 3180017: DevTools: remove injected script from resources. (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « webkit/support/webkit_support.cc ('k') | webkit/tools/test_shell/test_shell_devtools_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
28 28
29 void SetWebView(WebKit::WebView* web_view); 29 void SetWebView(WebKit::WebView* web_view);
30 30
31 // WebDevToolsAgentClient implementation. 31 // WebDevToolsAgentClient implementation.
32 virtual void sendMessageToInspectorFrontend( 32 virtual void sendMessageToInspectorFrontend(
33 const WebKit::WebString& data); 33 const WebKit::WebString& data);
34 virtual int hostIdentifier() { return routing_id_; } 34 virtual int hostIdentifier() { return routing_id_; }
35 virtual void forceRepaint(); 35 virtual void forceRepaint();
36 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature, 36 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature,
37 bool enabled); 37 bool enabled);
38 virtual WebKit::WebCString injectedScriptSource();
39 virtual WebKit::WebCString debuggerScriptSource(); 38 virtual WebKit::WebCString debuggerScriptSource();
40 39
41 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* 40 virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop*
42 createClientMessageLoop(); 41 createClientMessageLoop();
43 42
44 void AsyncCall(const TestShellDevToolsCallArgs& args); 43 void AsyncCall(const TestShellDevToolsCallArgs& args);
45 44
46 void attach(TestShellDevToolsClient* client); 45 void attach(TestShellDevToolsClient* client);
47 void detach(); 46 void detach();
48 void frontendLoaded(); 47 void frontendLoaded();
49 48
50 bool evaluateInWebInspector(long call_id, const std::string& script); 49 bool evaluateInWebInspector(long call_id, const std::string& script);
51 bool setTimelineProfilingEnabled(bool enable); 50 bool setTimelineProfilingEnabled(bool enable);
52 51
53 private: 52 private:
54 void Call(const TestShellDevToolsCallArgs& args); 53 void Call(const TestShellDevToolsCallArgs& args);
55 static void DispatchMessageLoop(); 54 static void DispatchMessageLoop();
56 WebKit::WebDevToolsAgent* GetWebAgent(); 55 WebKit::WebDevToolsAgent* GetWebAgent();
57 56
58 ScopedRunnableMethodFactory<TestShellDevToolsAgent> call_method_factory_; 57 ScopedRunnableMethodFactory<TestShellDevToolsAgent> call_method_factory_;
59 TestShellDevToolsClient* dev_tools_client_; 58 TestShellDevToolsClient* dev_tools_client_;
60 int routing_id_; 59 int routing_id_;
61 WebKit::WebDevToolsAgent* web_dev_tools_agent_; 60 WebKit::WebDevToolsAgent* web_dev_tools_agent_;
62 WebKit::WebView* web_view_; 61 WebKit::WebView* web_view_;
63 62
64 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent); 63 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent);
65 }; 64 };
66 65
67 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_ 66 #endif // TEST_SHELL_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.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