| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| 7 | 7 |
| 8 #include "base/time.h" | 8 #include "base/time.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| 11 class TabContents; | 11 class TabContents; |
| 12 | 12 |
| 13 typedef struct _GtkWidget GtkWidget; | 13 typedef struct _GtkWidget GtkWidget; |
| 14 | 14 |
| 15 class ExternalProtocolDialogGtk { | 15 class ExternalProtocolDialogGtk { |
| 16 public: | 16 public: |
| 17 ExternalProtocolDialogGtk(const GURL& url); | 17 explicit ExternalProtocolDialogGtk(const GURL& url); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 static void OnDialogResponse(GtkWidget* widget, | 20 static void OnDialogResponse(GtkWidget* widget, |
| 21 int response, | 21 int response, |
| 22 ExternalProtocolDialogGtk* dialog); | 22 ExternalProtocolDialogGtk* dialog); |
| 23 | 23 |
| 24 GtkWidget* dialog_; | 24 GtkWidget* dialog_; |
| 25 GURL url_; | 25 GURL url_; |
| 26 base::Time creation_time_; | 26 base::Time creation_time_; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ | 29 #endif // CHROME_BROWSER_GTK_EXTERNAL_PROTOCOL_DIALOG_GTK_H_ |
| OLD | NEW |