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

Unified Diff: chrome/browser/tab_contents/interstitial_page.h

Issue 18346: Adds support for multiple malware/phishing resources in a page (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/interstitial_page.h
===================================================================
--- chrome/browser/tab_contents/interstitial_page.h (revision 8521)
+++ chrome/browser/tab_contents/interstitial_page.h (working copy)
@@ -26,11 +26,7 @@
// through a navigation, the WebContents closing them or the tab containing them
// being closed.
-enum ResourceRequestAction {
- BLOCK,
- RESUME,
- CANCEL
-};
+enum ResourceRequestAction;
class InterstitialPage : public NotificationObserver,
public RenderViewHostDelegate {
@@ -150,10 +146,18 @@
// The RenderViewHost displaying the interstitial contents.
RenderViewHost* render_view_host_;
+ // The IDs for the RenderViewHost hidden by this interstitial.
+ int original_rvh_process_id_;
+ int original_rvh_id_;
+
// Whether or not we should change the title of the tab when hidden (to revert
// it to its original value).
bool should_revert_tab_title_;
+ // Whether the ResourceDispatcherHost has been notified to cancel/resume the
+ // resource requests blocked for the RenderViewHost.
+ bool resource_dispatcher_host_notified_;
+
// The original title of the tab that should be reverted to when the
// interstitial is hidden.
std::wstring original_tab_title_;
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698