| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" |
| 10 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 11 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 11 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
| 12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 13 | 14 |
| 14 class MessageLoop; | 15 class MessageLoop; |
| 15 class NavigationEntry; | 16 class NavigationEntry; |
| 16 class WebContents; | 17 class WebContents; |
| 17 | 18 |
| 18 // This class is a base class for interstitial pages, pages that show some | 19 // This class is a base class for interstitial pages, pages that show some |
| 19 // informative message asking for user validation before reaching the target | 20 // informative message asking for user validation before reaching the target |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // We keep a map of the various blocking pages shown as the UI tests need to | 173 // We keep a map of the various blocking pages shown as the UI tests need to |
| 173 // be able to retrieve them. | 174 // be able to retrieve them. |
| 174 typedef std::map<WebContents*,InterstitialPage*> InterstitialPageMap; | 175 typedef std::map<WebContents*,InterstitialPage*> InterstitialPageMap; |
| 175 static InterstitialPageMap* tab_to_interstitial_page_; | 176 static InterstitialPageMap* tab_to_interstitial_page_; |
| 176 | 177 |
| 177 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 178 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 181 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| 181 | 182 |
| OLD | NEW |