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

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

Issue 2371723002: Power Save Blocker: Eliminate passing ViewAndroid as WeakPtr (Closed)
Patch Set: Rebase Created 4 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
« no previous file with comments | « no previous file | content/browser/devtools/render_frame_devtools_agent_host.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) 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void DidCommitProvisionalLoadForFrame( 127 void DidCommitProvisionalLoadForFrame(
128 RenderFrameHost* render_frame_host, 128 RenderFrameHost* render_frame_host,
129 const GURL& url, 129 const GURL& url,
130 ui::PageTransition transition_type) override; 130 ui::PageTransition transition_type) override;
131 void DidFailProvisionalLoad( 131 void DidFailProvisionalLoad(
132 RenderFrameHost* render_frame_host, 132 RenderFrameHost* render_frame_host,
133 const GURL& validated_url, 133 const GURL& validated_url,
134 int error_code, 134 int error_code,
135 const base::string16& error_description, 135 const base::string16& error_description,
136 bool was_ignored_by_handler) override; 136 bool was_ignored_by_handler) override;
137 void WebContentsDestroyed() override;
138 void WasShown() override; 137 void WasShown() override;
139 void WasHidden() override; 138 void WasHidden() override;
140 139
141 void AboutToNavigateRenderFrame(RenderFrameHost* old_host, 140 void AboutToNavigateRenderFrame(RenderFrameHost* old_host,
142 RenderFrameHost* new_host); 141 RenderFrameHost* new_host);
143 void AboutToNavigate(NavigationHandle* navigation_handle); 142 void AboutToNavigate(NavigationHandle* navigation_handle);
144 143
145 void DispatchBufferedProtocolMessagesIfNecessary(); 144 void DispatchBufferedProtocolMessagesIfNecessary();
146 145
147 void SetPending(RenderFrameHostImpl* host); 146 void SetPending(RenderFrameHostImpl* host);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 std::unique_ptr<devtools::security::SecurityHandler> security_handler_; 182 std::unique_ptr<devtools::security::SecurityHandler> security_handler_;
184 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler> 183 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler>
185 service_worker_handler_; 184 service_worker_handler_;
186 std::unique_ptr<devtools::storage::StorageHandler> 185 std::unique_ptr<devtools::storage::StorageHandler>
187 storage_handler_; 186 storage_handler_;
188 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; 187 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_;
189 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_; 188 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_;
190 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; 189 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_;
191 #if defined(OS_ANDROID) 190 #if defined(OS_ANDROID)
192 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_; 191 std::unique_ptr<device::PowerSaveBlocker> power_save_blocker_;
193 std::unique_ptr<base::WeakPtrFactory<ui::ViewAndroid>> view_weak_factory_;
194 #endif 192 #endif
195 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; 193 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_;
196 bool current_frame_crashed_; 194 bool current_frame_crashed_;
197 195
198 // PlzNavigate 196 // PlzNavigate
199 197
200 // Handle that caused the setting of pending_. 198 // Handle that caused the setting of pending_.
201 NavigationHandle* pending_handle_; 199 NavigationHandle* pending_handle_;
202 200
203 // List of handles currently navigating. 201 // List of handles currently navigating.
204 std::set<NavigationHandle*> navigating_handles_; 202 std::set<NavigationHandle*> navigating_handles_;
205 203
206 struct PendingMessage { 204 struct PendingMessage {
207 int session_id; 205 int session_id;
208 std::string method; 206 std::string method;
209 std::string message; 207 std::string message;
210 }; 208 };
211 // <call_id> -> PendingMessage 209 // <call_id> -> PendingMessage
212 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_; 210 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_;
213 211
214 // The FrameTreeNode associated with this agent. 212 // The FrameTreeNode associated with this agent.
215 FrameTreeNode* frame_tree_node_; 213 FrameTreeNode* frame_tree_node_;
216 214
217 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 215 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
218 }; 216 };
219 217
220 } // namespace content 218 } // namespace content
221 219
222 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 220 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698