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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 12751007: Don't display navigation error pages during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_thread_impl.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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // True if RenderWidgets should report the newly requested size back to 197 // True if RenderWidgets should report the newly requested size back to
198 // WebKit without waiting for the browser to acknowledge the size. 198 // WebKit without waiting for the browser to acknowledge the size.
199 bool short_circuit_size_updates() const { 199 bool short_circuit_size_updates() const {
200 return short_circuit_size_updates_; 200 return short_circuit_size_updates_;
201 } 201 }
202 void set_short_circuit_size_updates(bool short_circuit) { 202 void set_short_circuit_size_updates(bool short_circuit) {
203 short_circuit_size_updates_ = short_circuit; 203 short_circuit_size_updates_ = short_circuit;
204 } 204 }
205 205
206 // True if we should never display error pages in response to a failed load.
207 bool skip_error_pages() const {
208 return skip_error_pages_;
209 }
210 void set_skip_error_pages(bool skip) {
211 skip_error_pages_ = skip;
212 }
213
206 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const { 214 IPC::ForwardingMessageFilter* compositor_output_surface_filter() const {
207 return compositor_output_surface_filter_.get(); 215 return compositor_output_surface_filter_.get();
208 } 216 }
209 217
210 InputHandlerManager* input_handler_manager() const { 218 InputHandlerManager* input_handler_manager() const {
211 return input_handler_manager_.get(); 219 return input_handler_manager_.get();
212 } 220 }
213 221
214 // Will be NULL if threaded compositing has not been enabled. 222 // Will be NULL if threaded compositing has not been enabled.
215 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { 223 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 420
413 // The number of idle handler calls that skip sending idle notifications. 421 // The number of idle handler calls that skip sending idle notifications.
414 int idle_notifications_to_skip_; 422 int idle_notifications_to_skip_;
415 423
416 bool suspend_webkit_shared_timer_; 424 bool suspend_webkit_shared_timer_;
417 bool notify_webkit_of_modal_loop_; 425 bool notify_webkit_of_modal_loop_;
418 426
419 // The following flags are used to control layout test specific behavior. 427 // The following flags are used to control layout test specific behavior.
420 bool should_send_focus_ipcs_; 428 bool should_send_focus_ipcs_;
421 bool short_circuit_size_updates_; 429 bool short_circuit_size_updates_;
430 bool skip_error_pages_;
422 431
423 // Timer that periodically calls IdleHandler. 432 // Timer that periodically calls IdleHandler.
424 base::RepeatingTimer<RenderThreadImpl> idle_timer_; 433 base::RepeatingTimer<RenderThreadImpl> idle_timer_;
425 434
426 // The channel from the renderer process to the GPU process. 435 // The channel from the renderer process to the GPU process.
427 scoped_refptr<GpuChannelHost> gpu_channel_; 436 scoped_refptr<GpuChannelHost> gpu_channel_;
428 437
429 // A lazily initiated thread on which file operations are run. 438 // A lazily initiated thread on which file operations are run.
430 scoped_ptr<base::Thread> file_thread_; 439 scoped_ptr<base::Thread> file_thread_;
431 440
(...skipping 23 matching lines...) Expand all
455 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 464 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
456 465
457 HistogramCustomizer histogram_customizer_; 466 HistogramCustomizer histogram_customizer_;
458 467
459 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 468 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
460 }; 469 };
461 470
462 } // namespace content 471 } // namespace content
463 472
464 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 473 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698