OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | |
6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | |
7 #pragma once | |
8 | |
9 #include <map> | |
10 #include <string> | |
11 | |
12 #include "content/browser/tab_contents/interstitial_page.h" | |
13 #include "content/public/browser/notification_observer.h" | |
14 #include "googleurl/src/gurl.h" | |
15 | |
16 // This class adds the possibility to react to DOMResponse-messages sent by | |
17 // the RenderViewHost via ChromeRenderViewHostObserver to the InterstitialPage. | |
18 class ChromeInterstitialPage : public InterstitialPage { | |
19 public: | |
20 ChromeInterstitialPage(content::WebContents* tab, | |
21 bool new_navigation, | |
22 const GURL& url); | |
23 virtual ~ChromeInterstitialPage(); | |
24 | |
25 // Shows the interstitial page in the tab. | |
26 virtual void Show() OVERRIDE; | |
27 | |
28 private: | |
29 DISALLOW_COPY_AND_ASSIGN(ChromeInterstitialPage); | |
30 }; | |
31 | |
32 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_INTERSTITIAL_PAGE_H_ | |
OLD | NEW |