| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 class GURL; | 11 class GURL; |
| 12 class RenderViewHost; | |
| 13 | 12 |
| 14 namespace gfx { | 13 namespace gfx { |
| 15 class Size; | 14 class Size; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace content { | 17 namespace content { |
| 19 | 18 |
| 20 class InterstitialPageDelegate; | 19 class InterstitialPageDelegate; |
| 20 class RenderViewHost; |
| 21 class WebContents; | 21 class WebContents; |
| 22 | 22 |
| 23 // This class is used for showing interstitial pages, pages that show some | 23 // This class is used for showing interstitial pages, pages that show some |
| 24 // informative message asking for user validation before reaching the target | 24 // informative message asking for user validation before reaching the target |
| 25 // page. (Navigating to a page served over bad HTTPS or a page containing | 25 // page. (Navigating to a page served over bad HTTPS or a page containing |
| 26 // malware are typical cases where an interstitial is required.) | 26 // malware are typical cases where an interstitial is required.) |
| 27 // | 27 // |
| 28 // If specified in the Create function, this class creates a navigation entry so | 28 // If specified in the Create function, this class creates a navigation entry so |
| 29 // that when the interstitial shows, the current entry is the target URL. | 29 // that when the interstitial shows, the current entry is the target URL. |
| 30 // | 30 // |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void Focus() = 0; | 79 virtual void Focus() = 0; |
| 80 | 80 |
| 81 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; | 81 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; |
| 82 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; | 82 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; |
| 83 virtual void DontCreateViewForTesting() = 0; | 83 virtual void DontCreateViewForTesting() = 0; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace content | 86 } // namespace content |
| 87 | 87 |
| 88 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ | 88 #endif // CONTENT_BROWSER_TAB_CONTENTS_INTERSTITIAL_PAGE_H_ |
| OLD | NEW |