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

Side by Side Diff: content/shell/browser/layout_test/blink_test_controller.h

Issue 2955123002: Mojo-ify ShellViewHostMsg_LayoutDumpResponse. (Closed)
Patch Set: Addressed CR feedback from alexmos@. Created 3 years, 5 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/shell/browser/layout_test/blink_test_controller.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <ostream> 10 #include <ostream>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 RenderFrameHost* frame, 152 RenderFrameHost* frame,
153 const BluetoothChooser::EventHandler& event_handler); 153 const BluetoothChooser::EventHandler& event_handler);
154 154
155 BlinkTestResultPrinter* printer() { return printer_.get(); } 155 BlinkTestResultPrinter* printer() { return printer_.get(); }
156 void set_printer(BlinkTestResultPrinter* printer) { printer_.reset(printer); } 156 void set_printer(BlinkTestResultPrinter* printer) { printer_.reset(printer); }
157 157
158 void DevToolsProcessCrashed(); 158 void DevToolsProcessCrashed();
159 159
160 // WebContentsObserver implementation. 160 // WebContentsObserver implementation.
161 bool OnMessageReceived(const IPC::Message& message) override; 161 bool OnMessageReceived(const IPC::Message& message) override;
162 bool OnMessageReceived(const IPC::Message& message,
163 RenderFrameHost* render_frame_host) override;
164 void PluginCrashed(const base::FilePath& plugin_path, 162 void PluginCrashed(const base::FilePath& plugin_path,
165 base::ProcessId plugin_pid) override; 163 base::ProcessId plugin_pid) override;
166 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; 164 void RenderFrameCreated(RenderFrameHost* render_frame_host) override;
167 void WebContentsDestroyed() override; 165 void WebContentsDestroyed() override;
168 166
169 // RenderProcessHostObserver implementation. 167 // RenderProcessHostObserver implementation.
170 void RenderProcessHostDestroyed( 168 void RenderProcessHostDestroyed(
171 RenderProcessHost* render_process_host) override; 169 RenderProcessHost* render_process_host) override;
172 void RenderProcessExited(RenderProcessHost* render_process_host, 170 void RenderProcessExited(RenderProcessHost* render_process_host,
173 base::TerminationStatus status, 171 base::TerminationStatus status,
(...skipping 23 matching lines...) Expand all
197 195
198 Shell* SecondaryWindow(); 196 Shell* SecondaryWindow();
199 void LoadDevToolsJSTest(); 197 void LoadDevToolsJSTest();
200 void DiscardMainWindow(); 198 void DiscardMainWindow();
201 199
202 // Message handlers. 200 // Message handlers.
203 void OnAudioDump(const std::vector<unsigned char>& audio_dump); 201 void OnAudioDump(const std::vector<unsigned char>& audio_dump);
204 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image); 202 void OnImageDump(const std::string& actual_pixel_hash, const SkBitmap& image);
205 void OnTextDump(const std::string& dump); 203 void OnTextDump(const std::string& dump);
206 void OnInitiateLayoutDump(); 204 void OnInitiateLayoutDump();
207 void OnLayoutDumpResponse(RenderFrameHost* sender, const std::string& dump); 205 void OnDumpFrameLayoutResponse(int frame_tree_node_id,
206 const std::string& dump);
208 void OnPrintMessageToStderr(const std::string& message); 207 void OnPrintMessageToStderr(const std::string& message);
209 void OnPrintMessage(const std::string& message); 208 void OnPrintMessage(const std::string& message);
210 void OnOverridePreferences(const WebPreferences& prefs); 209 void OnOverridePreferences(const WebPreferences& prefs);
211 void OnSetPopupBlockingEnabled(bool block_popups); 210 void OnSetPopupBlockingEnabled(bool block_popups);
212 void OnTestFinished(); 211 void OnTestFinished();
213 void OnClearDevToolsLocalStorage(); 212 void OnClearDevToolsLocalStorage();
214 void OnShowDevTools(const std::string& settings, 213 void OnShowDevTools(const std::string& settings,
215 const std::string& frontend_url); 214 const std::string& frontend_url);
216 void OnEvaluateInDevTools(int call_id, const std::string& script); 215 void OnEvaluateInDevTools(int call_id, const std::string& script);
217 void OnCloseDevTools(); 216 void OnCloseDevTools();
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 275
277 NotificationRegistrar registrar_; 276 NotificationRegistrar registrar_;
278 277
279 const bool is_leak_detection_enabled_; 278 const bool is_leak_detection_enabled_;
280 bool crash_when_leak_found_; 279 bool crash_when_leak_found_;
281 280
282 std::unique_ptr<LayoutTestBluetoothChooserFactory> bluetooth_chooser_factory_; 281 std::unique_ptr<LayoutTestBluetoothChooserFactory> bluetooth_chooser_factory_;
283 282
284 // Map from frame_tree_node_id into frame-specific dumps. 283 // Map from frame_tree_node_id into frame-specific dumps.
285 std::map<int, std::string> frame_to_layout_dump_map_; 284 std::map<int, std::string> frame_to_layout_dump_map_;
286 // Number of ShellViewHostMsg_LayoutDumpResponse messages we are waiting for. 285 // Number of LayoutTestControl.DumpFrameLayout responses we are waiting for.
287 int pending_layout_dumps_; 286 int pending_layout_dumps_;
288 287
289 // Renderer processes are observed to detect crashes. 288 // Renderer processes are observed to detect crashes.
290 ScopedObserver<RenderProcessHost, RenderProcessHostObserver> 289 ScopedObserver<RenderProcessHost, RenderProcessHostObserver>
291 render_process_host_observer_; 290 render_process_host_observer_;
292 std::set<RenderProcessHost*> all_observed_render_process_hosts_; 291 std::set<RenderProcessHost*> all_observed_render_process_hosts_;
293 std::set<RenderProcessHost*> main_window_render_process_hosts_; 292 std::set<RenderProcessHost*> main_window_render_process_hosts_;
294 293
295 // Changes reported by OnLayoutTestRuntimeFlagsChanged that have accumulated 294 // Changes reported by OnLayoutTestRuntimeFlagsChanged that have accumulated
296 // since PrepareForLayoutTest (i.e. changes that need to be send to a fresh 295 // since PrepareForLayoutTest (i.e. changes that need to be send to a fresh
(...skipping 10 matching lines...) Expand all
307 #endif 306 #endif
308 307
309 SEQUENCE_CHECKER(sequence_checker_); 308 SEQUENCE_CHECKER(sequence_checker_);
310 309
311 DISALLOW_COPY_AND_ASSIGN(BlinkTestController); 310 DISALLOW_COPY_AND_ASSIGN(BlinkTestController);
312 }; 311 };
313 312
314 } // namespace content 313 } // namespace content
315 314
316 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_ 315 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_BLINK_TEST_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/browser/layout_test/blink_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698