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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 10381073: Revert 132407 - Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1130/src/
Patch Set: Created 8 years, 7 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
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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 bool IsMouseLocked() const; 425 bool IsMouseLocked() const;
426 426
427 // RenderViewHost overrides this method to report when in fullscreen mode. 427 // RenderViewHost overrides this method to report when in fullscreen mode.
428 virtual bool IsFullscreen() const; 428 virtual bool IsFullscreen() const;
429 429
430 // Indicates if the render widget host should track the render widget's size 430 // Indicates if the render widget host should track the render widget's size
431 // as opposed to visa versa. 431 // as opposed to visa versa.
432 void SetShouldAutoResize(bool enable); 432 void SetShouldAutoResize(bool enable);
433 433
434 protected: 434 protected:
435 // Expose increment/decrement of the in-flight event count, so
436 // RenderViewHostImpl can account for in-flight beforeunload/unload events.
437 int increment_in_flight_event_count() { return ++in_flight_event_count_; }
438 int decrement_in_flight_event_count() { return --in_flight_event_count_; }
439
440 // The View associated with the RenderViewHost. The lifetime of this object 435 // The View associated with the RenderViewHost. The lifetime of this object
441 // is associated with the lifetime of the Render process. If the Renderer 436 // is associated with the lifetime of the Render process. If the Renderer
442 // crashes, its View is destroyed and this pointer becomes NULL, even though 437 // crashes, its View is destroyed and this pointer becomes NULL, even though
443 // render_view_host_ lives on to load another URL (creating a new View while 438 // render_view_host_ lives on to load another URL (creating a new View while
444 // doing so). 439 // doing so).
445 RenderWidgetHostViewPort* view_; 440 RenderWidgetHostViewPort* view_;
446 441
447 // true if a renderer has once been valid. We use this flag to display a sad 442 // true if a renderer has once been valid. We use this flag to display a sad
448 // tab only when we lose our renderer and not if a paint occurs during 443 // tab only when we lose our renderer and not if a paint occurs during
449 // initialization. 444 // initialization.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 721 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
727 722
728 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 723 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
729 724
730 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 725 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
731 }; 726 };
732 727
733 } // namespace content 728 } // namespace content
734 729
735 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 730 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698