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 "base/gfx/size.h" |
| 11 #include "base/scoped_ptr.h" |
11 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
12 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
14 | 15 |
15 class MessageLoop; | 16 class MessageLoop; |
16 class NavigationEntry; | 17 class NavigationEntry; |
17 class WebContents; | 18 class WebContents; |
18 | 19 |
19 // This class is a base class for interstitial pages, pages that show some | 20 // This class is a base class for interstitial pages, pages that show some |
20 // informative message asking for user validation before reaching the target | 21 // informative message asking for user validation before reaching the target |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 179 |
179 // We keep a map of the various blocking pages shown as the UI tests need to | 180 // We keep a map of the various blocking pages shown as the UI tests need to |
180 // be able to retrieve them. | 181 // be able to retrieve them. |
181 typedef std::map<WebContents*,InterstitialPage*> InterstitialPageMap; | 182 typedef std::map<WebContents*,InterstitialPage*> InterstitialPageMap; |
182 static InterstitialPageMap* tab_to_interstitial_page_; | 183 static InterstitialPageMap* tab_to_interstitial_page_; |
183 | 184 |
184 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 185 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
185 }; | 186 }; |
186 | 187 |
187 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 188 #endif // #ifndef CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |