blob: 9032924a6967a14c47e8ff35483f3114693cd5c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_INTERSTITIAL_PAGE_DELEGATE_H__
#define CHROME_BROWSER_INTERSTITIAL_PAGE_DELEGATE_H__
// The InterstitialPageDelegate interface allows implementing classes to take
// action when different events happen while an interstitial page is shown.
// It is passed to the WebContents::ShowInterstitial() method.
class InterstitialPageDelegate {
public:
// Notification that the interstitial page was closed. This is the last call
// that the delegate gets.
virtual void InterstitialClosed() = 0;
// The tab showing this interstitial page is navigating back. If this returns
// false, the default back behavior is executed (navigating to the previous
// navigation entry). If this returns true, no navigation is performed (it
// is assumed the implementation took care of the navigation).
virtual bool GoBack() = 0;
};
#endif // CHROME_BROWSER_INTERSTITIAL_PAGE_DELEGATE_H__
|