Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: content/public/browser/interstitial_page.h

Issue 10870073: Change how NavigationController reloads transient entries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove outdated comment Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 9
10 class GURL; 10 class GURL;
(...skipping 22 matching lines...) Expand all
33 33
34 class InterstitialPage { 34 class InterstitialPage {
35 public: 35 public:
36 // Creates an interstitial page to show in |web_contents|. |new_navigation| 36 // Creates an interstitial page to show in |web_contents|. |new_navigation|
37 // should be set to true when the interstitial is caused by loading a new 37 // should be set to true when the interstitial is caused by loading a new
38 // page, in which case a temporary navigation entry is created with the URL 38 // page, in which case a temporary navigation entry is created with the URL
39 // |url| and added to the navigation controller (so the interstitial page 39 // |url| and added to the navigation controller (so the interstitial page
40 // appears as a new navigation entry). |new_navigation| should be false when 40 // appears as a new navigation entry). |new_navigation| should be false when
41 // the interstitial was triggered by a loading a sub-resource in a page. Takes 41 // the interstitial was triggered by a loading a sub-resource in a page. Takes
42 // ownership of |delegate|. 42 // ownership of |delegate|.
43 //
44 // Reloading the interstitial page will result in a new navigation to |url|.
43 CONTENT_EXPORT static InterstitialPage* Create( 45 CONTENT_EXPORT static InterstitialPage* Create(
44 WebContents* web_contents, 46 WebContents* web_contents,
45 bool new_navigation, 47 bool new_navigation,
46 const GURL& url, 48 const GURL& url,
47 InterstitialPageDelegate* delegate); 49 InterstitialPageDelegate* delegate);
48 50
49 // Retrieves the InterstitialPage if any associated with the specified 51 // Retrieves the InterstitialPage if any associated with the specified
50 // |web_contents|. 52 // |web_contents|.
51 CONTENT_EXPORT static InterstitialPage* GetInterstitialPage( 53 CONTENT_EXPORT static InterstitialPage* GetInterstitialPage(
52 WebContents* web_contents); 54 WebContents* web_contents);
(...skipping 25 matching lines...) Expand all
78 virtual void Focus() = 0; 80 virtual void Focus() = 0;
79 81
80 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0; 82 virtual RenderViewHost* GetRenderViewHostForTesting() const = 0;
81 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0; 83 virtual InterstitialPageDelegate* GetDelegateForTesting() = 0;
82 virtual void DontCreateViewForTesting() = 0; 84 virtual void DontCreateViewForTesting() = 0;
83 }; 85 };
84 86
85 } // namespace content 87 } // namespace content
86 88
87 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_ 89 #endif // CONTENT_PUBLIC_BROWSER_INTERSTITIAL_PAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698