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

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: Fix android build 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
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;
Bernhard Bauer 2015/03/03 09:56:00 Do you really want to provide a default implementa
meacer 2015/03/03 18:33:05 I started with a pure virtual method, but turns ou
Bernhard Bauer 2015/03/03 21:40:51 I'm more worried about the classes that are not te
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698