Home | History | Annotate | Download | only in instant
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
      6 #define CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
      7 #pragma once
      8 
      9 #include "ui/gfx/native_widget_types.h"
     10 
     11 class GURL;
     12 class Profile;
     13 
     14 namespace browser {
     15 
     16 // URL for learning more about instant.
     17 GURL InstantLearnMoreURL();
     18 
     19 // Invoked from the opt-in and preferences when the user toggles instant. If the
     20 // instant confirm dialog hasn't been shown, it's shown. If the instant dialog
     21 // has already been shown the dialog is not shown but the preference is toggled.
     22 void ShowInstantConfirmDialogIfNecessary(gfx::NativeWindow parent,
     23                                          Profile* profile);
     24 
     25 // Shows the platform specific dialog to confirm if the user really wants to
     26 // enable instant. If the user accepts the dialog invoke
     27 // InstantController::Enable.
     28 void ShowInstantConfirmDialog(gfx::NativeWindow parent,
     29                               Profile* profile);
     30 
     31 }  // namespace browser
     32 
     33 #endif  // CHROME_BROWSER_INSTANT_INSTANT_CONFIRM_DIALOG_H_
     34