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 |
(...skipping 30 matching lines...) Expand all Loading... |
41 // appears as a new navigation entry). |new_navigation| should be false when | 41 // appears as a new navigation entry). |new_navigation| should be false when |
42 // the interstitial was triggered by a loading a sub-resource in a page. Takes | 42 // the interstitial was triggered by a loading a sub-resource in a page. Takes |
43 // ownership of |delegate|. | 43 // ownership of |delegate|. |
44 CONTENT_EXPORT static InterstitialPage* Create( | 44 CONTENT_EXPORT static InterstitialPage* Create( |
45 WebContents* web_contents, | 45 WebContents* web_contents, |
46 bool new_navigation, | 46 bool new_navigation, |
47 const GURL& url, | 47 const GURL& url, |
48 InterstitialPageDelegate* delegate); | 48 InterstitialPageDelegate* delegate); |
49 | 49 |
50 // Retrieves the InterstitialPage if any associated with the specified | 50 // Retrieves the InterstitialPage if any associated with the specified |
51 // |web_contents| (used by ui tests). | 51 // |web_contents|. |
52 CONTENT_EXPORT static InterstitialPage* GetInterstitialPage( | 52 CONTENT_EXPORT static InterstitialPage* GetInterstitialPage( |
53 WebContents* web_contents); | 53 WebContents* web_contents); |
54 | 54 |
55 virtual ~InterstitialPage() {} | 55 virtual ~InterstitialPage() {} |
56 | 56 |
57 // Shows the interstitial page in the tab. | 57 // Shows the interstitial page in the tab. |
58 virtual void Show() = 0; | 58 virtual void Show() = 0; |
59 | 59 |
60 // Hides the interstitial page. | 60 // Hides the interstitial page. |
61 virtual void Hide() = 0; | 61 virtual void Hide() = 0; |
(...skipping 17 matching lines...) Expand all 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_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ | 88 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ |
OLD | NEW |