OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 14 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
15 #include "chrome/common/notification_observer.h" | 15 #include "chrome/common/notification_observer.h" |
16 #include "chrome/common/notification_registrar.h" | 16 #include "chrome/common/notification_registrar.h" |
17 #include "chrome/common/renderer_preferences.h" | 17 #include "chrome/common/renderer_preferences.h" |
18 #include "gfx/size.h" | |
19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "ui/gfx/size.h" |
20 | 20 |
21 class NavigationEntry; | 21 class NavigationEntry; |
22 class TabContents; | 22 class TabContents; |
23 class TabContentsView; | 23 class TabContentsView; |
24 | 24 |
25 // This class is a base class for interstitial pages, pages that show some | 25 // This class is a base class for interstitial pages, pages that show some |
26 // informative message asking for user validation before reaching the target | 26 // informative message asking for user validation before reaching the target |
27 // page. (Navigating to a page served over bad HTTPS or a page containing | 27 // page. (Navigating to a page served over bad HTTPS or a page containing |
28 // malware are typical cases where an interstitial is required.) | 28 // malware are typical cases where an interstitial is required.) |
29 // | 29 // |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; | 236 typedef std::map<TabContents*, InterstitialPage*> InterstitialPageMap; |
237 static InterstitialPageMap* tab_to_interstitial_page_; | 237 static InterstitialPageMap* tab_to_interstitial_page_; |
238 | 238 |
239 // Settings passed to the renderer. | 239 // Settings passed to the renderer. |
240 RendererPreferences renderer_preferences_; | 240 RendererPreferences renderer_preferences_; |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); | 242 DISALLOW_COPY_AND_ASSIGN(InterstitialPage); |
243 }; | 243 }; |
244 | 244 |
245 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 245 #endif // CHROME_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
OLD | NEW |