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

Unified Diff: content/public/browser/interstitial_page_delegate.h

Issue 962413002: Add type for testing to interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb comments Created 5 years, 10 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/interstitial_page_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/interstitial_page_delegate.h
diff --git a/content/public/browser/interstitial_page_delegate.h b/content/public/browser/interstitial_page_delegate.h
index 74e4c4ccaade4d59d6251edf773680c7f5c6f420..d64879c25490ee51a769393d1959459554b303a4 100644
--- a/content/public/browser/interstitial_page_delegate.h
+++ b/content/public/browser/interstitial_page_delegate.h
@@ -16,8 +16,11 @@ struct RendererPreferences;
// Controls and provides the html for an interstitial page. The delegate is
// owned by the InterstitialPage.
-class InterstitialPageDelegate {
+class CONTENT_EXPORT InterstitialPageDelegate {
public:
+ // An identifier used to identify an InterstitialPage.
+ typedef const void* TypeID;
+
virtual ~InterstitialPageDelegate() {}
// Return the HTML that should be displayed in the page.
@@ -42,6 +45,9 @@ class InterstitialPageDelegate {
// Allows the delegate to override the renderer preferences structure that's
// sent to the new RenderViewHost.
virtual void OverrideRendererPrefs(content::RendererPreferences* prefs) {}
+
+ // Return the interstitial type for testing.
+ virtual TypeID GetTypeForTesting() const;
};
} // namespace content
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/interstitial_page_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698