1 // Copyright (c) 2011 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_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 7 #pragma once 8 9 #include "base/basictypes.h" 10 #include "base/time.h" 11 #include "googleurl/src/gurl.h" 12 #include "ui/base/gtk/gtk_signal.h" 13 14 typedef struct _GtkWidget GtkWidget; 15 16 class ExternalProtocolDialogGtk { 17 public: 18 explicit ExternalProtocolDialogGtk(const GURL& url); 19 ~ExternalProtocolDialogGtk(); 20 21 private: 22 CHROMEGTK_CALLBACK_1(ExternalProtocolDialogGtk, void, OnResponse, int); 23 24 GtkWidget* dialog_; 25 GtkWidget* checkbox_; 26 GURL url_; 27 base::TimeTicks creation_time_; 28 29 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialogGtk); 30 }; 31 32 #endif // CHROME_BROWSER_UI_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ 33