blob: 434d65ad9713d50e14021106a736103ff8e77ab2 (
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 Profile;
namespace browser {
// URL for learning more about instant.
extern const char kInstantLearnMoreURL[];
// 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 implementations must set
// both |prefs::kInstantEnabled| and |prefs::kInstantConfirmDialogShown| to
// true.
void ShowInstantConfirmDialog(gfx::NativeWindow parent,
Profile* profile);
} // namespace browser
#endif // CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
|