summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_chrome_cookie_view.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 17:02:23 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-28 17:02:23 +0000
commitb54a2c02f0303edef56b831d67d5330f8e6080e2 (patch)
treef4731d5706af1ad6f46febd5235fc6efbc4231a5 /chrome/browser/gtk/gtk_chrome_cookie_view.h
parent53d99736cb51adf3d04174a86165fcb9397f1b66 (diff)
downloadchromium_src-b54a2c02f0303edef56b831d67d5330f8e6080e2.zip
chromium_src-b54a2c02f0303edef56b831d67d5330f8e6080e2.tar.gz
chromium_src-b54a2c02f0303edef56b831d67d5330f8e6080e2.tar.bz2
GTK: The cookie prompt should allow the user to set expire date for HTML cookies
BUG=42403 TEST=none Review URL: http://codereview.chromium.org/1774005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_chrome_cookie_view.h')
-rw-r--r--chrome/browser/gtk/gtk_chrome_cookie_view.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_cookie_view.h b/chrome/browser/gtk/gtk_chrome_cookie_view.h
index e729b04..aa663a9 100644
--- a/chrome/browser/gtk/gtk_chrome_cookie_view.h
+++ b/chrome/browser/gtk/gtk_chrome_cookie_view.h
@@ -63,7 +63,14 @@ typedef struct {
GtkWidget* cookie_path_entry_;
GtkWidget* cookie_send_for_entry_;
GtkWidget* cookie_created_entry_;
+
+ // Note: These two widgets are mutually exclusive based on what
+ // |editable_expiration| was when the cookie view was created. One of these
+ // variables will be NULL.
GtkWidget* cookie_expires_entry_;
+ GtkWidget* cookie_expires_combobox_;
+
+ GtkListStore* cookie_expires_combobox_store_;
// The database details widgets.
GtkWidget* database_details_table_;
@@ -110,7 +117,7 @@ typedef struct {
GType gtk_chrome_cookie_view_get_type();
// Builds a new cookie view.
-GtkChromeCookieView* gtk_chrome_cookie_view_new();
+GtkWidget* gtk_chrome_cookie_view_new(gboolean editable_expiration);
// Clears the cookie view.
void gtk_chrome_cookie_view_clear(GtkChromeCookieView* widget);
@@ -167,4 +174,8 @@ void gtk_chrome_cookie_view_display_appcache_created(
GtkChromeCookieView* self,
const GURL& manifest_url);
+// If |editable_expiration| was true at construction time, returns the value of
+// the combo box. Otherwise, returns false.
+bool gtk_chrome_cookie_view_session_expires(GtkChromeCookieView* self);
+
#endif // CHROME_BROWSER_GTK_GTK_CHROME_COOKIE_VIEW_H_