summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant/instant_confirm_dialog.h
blob: f8cfe2167f8a0f88bedaffde0febaf6b9b481672 (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
28
29
30
31
32
33
// Copyright (c) 2010 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_INSTANT_INSTANT_CONFIRM_DIALOG_H_
#define CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
#pragma once

#include "gfx/native_widget_types.h"

class GURL;
class Profile;

namespace browser {

// URL for learning more about instant.
GURL InstantLearnMoreURL();

// Invoked from the opt-in and preferences when the user toggles instant. If the
// instant confirm dialog hasn't been shown, it's shown. If the instant dialog
// has already been shown the dialog is not shown but the preference is toggled.
void ShowInstantConfirmDialogIfNecessary(gfx::NativeWindow parent,
                                         Profile* profile);

// Shows the platform specific dialog to confirm if the user really wants to
// enable instant. If the user accepts the dialog invoke
// InstantController::Enable.
void ShowInstantConfirmDialog(gfx::NativeWindow parent,
                              Profile* profile);

}  // namespace browser

#endif  // CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_