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

Side by Side Diff: content/browser/devtools/render_frame_devtools_agent_host.h

Issue 2799783006: [DevTools] Calculate target type and title once in constructor (Closed)
Patch Set: extensions fix Created 3 years, 8 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
OLDNEW
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_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Stores per-host state between DisconnectWebContents and ConnectWebContents. 165 // Stores per-host state between DisconnectWebContents and ConnectWebContents.
166 std::unique_ptr<FrameHostHolder> disconnected_; 166 std::unique_ptr<FrameHostHolder> disconnected_;
167 167
168 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; 168 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_;
169 #if defined(OS_ANDROID) 169 #if defined(OS_ANDROID)
170 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; 170 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
171 #endif 171 #endif
172 RenderFrameHostImpl* handlers_frame_host_; 172 RenderFrameHostImpl* handlers_frame_host_;
173 bool current_frame_crashed_; 173 bool current_frame_crashed_;
174 std::string title_;
175 std::string type_;
174 176
175 // PlzNavigate 177 // PlzNavigate
176 178
177 // Handle that caused the setting of pending_. 179 // Handle that caused the setting of pending_.
178 NavigationHandle* pending_handle_; 180 NavigationHandle* pending_handle_;
179 181
180 // List of handles currently navigating. 182 // List of handles currently navigating.
181 std::set<NavigationHandle*> navigating_handles_; 183 std::set<NavigationHandle*> navigating_handles_;
182 184
183 struct PendingMessage { 185 struct PendingMessage {
184 int session_id; 186 int session_id;
185 std::string method; 187 std::string method;
186 std::string message; 188 std::string message;
187 }; 189 };
188 // <call_id> -> PendingMessage 190 // <call_id> -> PendingMessage
189 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_; 191 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_;
190 192
191 // The FrameTreeNode associated with this agent. 193 // The FrameTreeNode associated with this agent.
192 FrameTreeNode* frame_tree_node_; 194 FrameTreeNode* frame_tree_node_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 196 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
195 }; 197 };
196 198
197 } // namespace content 199 } // namespace content
198 200
199 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 201 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698