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

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

Issue 2003803002: Remove dependency of power_save_blocker_android on various content bits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@power-save-task-runners
Patch Set: only .reset() Created 4 years, 6 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 | « content/browser/DEPS ('k') | 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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/browser/devtools/devtools_agent_host_impl.h" 14 #include "content/browser/devtools/devtools_agent_host_impl.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/browser/web_contents_observer.h" 16 #include "content/public/browser/web_contents_observer.h"
17 17
18 #if defined(OS_ANDROID)
19 #include "ui/android/view_android.h"
20 #endif // OS_ANDROID
21
18 namespace cc { 22 namespace cc {
19 class CompositorFrameMetadata; 23 class CompositorFrameMetadata;
20 } 24 }
21 25
22 namespace content { 26 namespace content {
23 27
24 class BrowserContext; 28 class BrowserContext;
25 class DevToolsFrameTraceRecorder; 29 class DevToolsFrameTraceRecorder;
26 class DevToolsProtocolHandler; 30 class DevToolsProtocolHandler;
27 class FrameTreeNode; 31 class FrameTreeNode;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 void DidCommitProvisionalLoadForFrame( 114 void DidCommitProvisionalLoadForFrame(
111 RenderFrameHost* render_frame_host, 115 RenderFrameHost* render_frame_host,
112 const GURL& url, 116 const GURL& url,
113 ui::PageTransition transition_type) override; 117 ui::PageTransition transition_type) override;
114 void DidFailProvisionalLoad( 118 void DidFailProvisionalLoad(
115 RenderFrameHost* render_frame_host, 119 RenderFrameHost* render_frame_host,
116 const GURL& validated_url, 120 const GURL& validated_url,
117 int error_code, 121 int error_code,
118 const base::string16& error_description, 122 const base::string16& error_description,
119 bool was_ignored_by_handler) override; 123 bool was_ignored_by_handler) override;
124 void WebContentsDestroyed() override;
120 125
121 void AboutToNavigateRenderFrame(RenderFrameHost* old_host, 126 void AboutToNavigateRenderFrame(RenderFrameHost* old_host,
122 RenderFrameHost* new_host); 127 RenderFrameHost* new_host);
123 void AboutToNavigate(NavigationHandle* navigation_handle); 128 void AboutToNavigate(NavigationHandle* navigation_handle);
124 129
125 void DispatchBufferedProtocolMessagesIfNecessary(); 130 void DispatchBufferedProtocolMessagesIfNecessary();
126 131
127 void SetPending(RenderFrameHostImpl* host); 132 void SetPending(RenderFrameHostImpl* host);
128 void CommitPending(); 133 void CommitPending();
129 void DiscardPending(); 134 void DiscardPending();
(...skipping 30 matching lines...) Expand all
160 std::unique_ptr<devtools::security::SecurityHandler> security_handler_; 165 std::unique_ptr<devtools::security::SecurityHandler> security_handler_;
161 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler> 166 std::unique_ptr<devtools::service_worker::ServiceWorkerHandler>
162 service_worker_handler_; 167 service_worker_handler_;
163 std::unique_ptr<devtools::storage::StorageHandler> 168 std::unique_ptr<devtools::storage::StorageHandler>
164 storage_handler_; 169 storage_handler_;
165 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_; 170 std::unique_ptr<devtools::tracing::TracingHandler> tracing_handler_;
166 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_; 171 std::unique_ptr<devtools::emulation::EmulationHandler> emulation_handler_;
167 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_; 172 std::unique_ptr<DevToolsFrameTraceRecorder> frame_trace_recorder_;
168 #if defined(OS_ANDROID) 173 #if defined(OS_ANDROID)
169 std::unique_ptr<PowerSaveBlockerImpl> power_save_blocker_; 174 std::unique_ptr<PowerSaveBlockerImpl> power_save_blocker_;
175 std::unique_ptr<base::WeakPtrFactory<ui::ViewAndroid>> view_weak_factory_;
170 #endif 176 #endif
171 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_; 177 std::unique_ptr<DevToolsProtocolHandler> protocol_handler_;
172 bool current_frame_crashed_; 178 bool current_frame_crashed_;
173 179
174 // PlzNavigate 180 // PlzNavigate
175 181
176 // Handle that caused the setting of pending_. 182 // Handle that caused the setting of pending_.
177 NavigationHandle* pending_handle_; 183 NavigationHandle* pending_handle_;
178 184
179 // List of handles currently navigating. 185 // List of handles currently navigating.
180 std::set<NavigationHandle*> navigating_handles_; 186 std::set<NavigationHandle*> navigating_handles_;
181 187
182 struct PendingMessage { 188 struct PendingMessage {
183 int session_id; 189 int session_id;
184 std::string method; 190 std::string method;
185 std::string message; 191 std::string message;
186 }; 192 };
187 // <call_id> -> PendingMessage 193 // <call_id> -> PendingMessage
188 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_; 194 std::map<int, PendingMessage> in_navigation_protocol_message_buffer_;
189 195
190 // The FrameTreeNode associated with this agent. 196 // The FrameTreeNode associated with this agent.
191 FrameTreeNode* frame_tree_node_; 197 FrameTreeNode* frame_tree_node_;
192 198
193 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost); 199 DISALLOW_COPY_AND_ASSIGN(RenderFrameDevToolsAgentHost);
194 }; 200 };
195 201
196 } // namespace content 202 } // namespace content
197 203
198 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_ 204 #endif // CONTENT_BROWSER_DEVTOOLS_RENDER_FRAME_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698