OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 5 #ifndef CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 6 #define CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // WebDevToolsAgentClient implementation. | 65 // WebDevToolsAgentClient implementation. |
66 void sendProtocolMessage(int session_id, | 66 void sendProtocolMessage(int session_id, |
67 int call_id, | 67 int call_id, |
68 const blink::WebString& response, | 68 const blink::WebString& response, |
69 const blink::WebString& state) override; | 69 const blink::WebString& state) override; |
70 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* | 70 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* |
71 createClientMessageLoop() override; | 71 createClientMessageLoop() override; |
72 void willEnterDebugLoop() override; | 72 void willEnterDebugLoop() override; |
73 void didExitDebugLoop() override; | 73 void didExitDebugLoop() override; |
74 | |
75 bool requestDevToolsForFrame(blink::WebLocalFrame* frame) override; | 74 bool requestDevToolsForFrame(blink::WebLocalFrame* frame) override; |
76 | |
77 void enableTracing(const blink::WebString& category_filter) override; | 75 void enableTracing(const blink::WebString& category_filter) override; |
78 void disableTracing() override; | 76 void disableTracing() override; |
79 | |
80 void setCPUThrottlingRate(double rate) override; | 77 void setCPUThrottlingRate(double rate) override; |
| 78 void showCertificateViewer( |
| 79 const blink::WebVector<blink::WebString>& certificate) override; |
81 | 80 |
82 void OnAttach(const std::string& host_id, int session_id); | 81 void OnAttach(const std::string& host_id, int session_id); |
83 void OnReattach(const std::string& host_id, | 82 void OnReattach(const std::string& host_id, |
84 int session_id, | 83 int session_id, |
85 const std::string& agent_state); | 84 const std::string& agent_state); |
86 void OnDetach(); | 85 void OnDetach(); |
87 void OnDispatchOnInspectorBackend(int session_id, | 86 void OnDispatchOnInspectorBackend(int session_id, |
88 int call_id, | 87 int call_id, |
89 const std::string& method, | 88 const std::string& method, |
90 const std::string& message); | 89 const std::string& message); |
(...skipping 17 matching lines...) Expand all Loading... |
108 send_protocol_message_callback_for_test_; | 107 send_protocol_message_callback_for_test_; |
109 std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_; | 108 std::unique_ptr<DevToolsCPUThrottler> cpu_throttler_; |
110 base::WeakPtrFactory<DevToolsAgent> weak_factory_; | 109 base::WeakPtrFactory<DevToolsAgent> weak_factory_; |
111 | 110 |
112 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 111 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace content | 114 } // namespace content |
116 | 115 |
117 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ | 116 #endif // CONTENT_RENDERER_DEVTOOLS_DEVTOOLS_AGENT_H_ |
OLD | NEW |