OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "chrome/browser/browsing_data_appcache_helper.h" | 12 #include "chrome/browser/browsing_data_appcache_helper.h" |
13 #include "chrome/browser/browsing_data_database_helper.h" | 13 #include "chrome/browser/browsing_data_database_helper.h" |
14 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 14 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
15 #include "chrome/browser/browsing_data_local_storage_helper.h" | 15 #include "chrome/browser/browsing_data_local_storage_helper.h" |
16 #include "net/cookies/cookie_monster.h" | |
17 | 16 |
18 class GURL; | 17 class GURL; |
19 | 18 |
| 19 namespace net { |
| 20 class CanonicalCookie; |
| 21 } |
| 22 |
20 G_BEGIN_DECLS | 23 G_BEGIN_DECLS |
21 | 24 |
22 #define GTK_TYPE_CHROME_COOKIE_VIEW gtk_chrome_cookie_view_get_type() | 25 #define GTK_TYPE_CHROME_COOKIE_VIEW gtk_chrome_cookie_view_get_type() |
23 | 26 |
24 #define GTK_CHROME_COOKIE_VIEW(obj) \ | 27 #define GTK_CHROME_COOKIE_VIEW(obj) \ |
25 (G_TYPE_CHECK_INSTANCE_CAST((obj), \ | 28 (G_TYPE_CHECK_INSTANCE_CAST((obj), \ |
26 GTK_TYPE_CHROME_COOKIE_VIEW, GtkChromeCookieView)) | 29 GTK_TYPE_CHROME_COOKIE_VIEW, GtkChromeCookieView)) |
27 | 30 |
28 #define GTK_CHROME_COOKIE_VIEW_CLASS(klass) \ | 31 #define GTK_CHROME_COOKIE_VIEW_CLASS(klass) \ |
29 (G_TYPE_CHECK_CLASS_CAST((klass), \ | 32 (G_TYPE_CHECK_CLASS_CAST((klass), \ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // NOTE: The G_END_DECLS ends here instead of at the end of the document | 135 // NOTE: The G_END_DECLS ends here instead of at the end of the document |
133 // because we want to define some methods on GtkChromeCookieView that take C++ | 136 // because we want to define some methods on GtkChromeCookieView that take C++ |
134 // objects. | 137 // objects. |
135 G_END_DECLS | 138 G_END_DECLS |
136 // NOTE: ^^^^^^^^^^^^^^^^^^^^^^^ | 139 // NOTE: ^^^^^^^^^^^^^^^^^^^^^^^ |
137 | 140 |
138 // Switches the display to showing the passed in cookie. | 141 // Switches the display to showing the passed in cookie. |
139 void gtk_chrome_cookie_view_display_cookie( | 142 void gtk_chrome_cookie_view_display_cookie( |
140 GtkChromeCookieView* widget, | 143 GtkChromeCookieView* widget, |
141 const std::string& domain, | 144 const std::string& domain, |
142 const net::CookieMonster::CanonicalCookie& cookie); | 145 const net::CanonicalCookie& cookie); |
143 | 146 |
144 // Looks up the cookie_line in CookieMonster and displays that. | 147 // Looks up the cookie_line in CookieMonster and displays that. |
145 void gtk_chrome_cookie_view_display_cookie_string( | 148 void gtk_chrome_cookie_view_display_cookie_string( |
146 GtkChromeCookieView* widget, | 149 GtkChromeCookieView* widget, |
147 const GURL& url, | 150 const GURL& url, |
148 const std::string& cookie_line); | 151 const std::string& cookie_line); |
149 | 152 |
150 // Switches the display to showing the passed in database. | 153 // Switches the display to showing the passed in database. |
151 void gtk_chrome_cookie_view_display_database( | 154 void gtk_chrome_cookie_view_display_database( |
152 GtkChromeCookieView* widget, | 155 GtkChromeCookieView* widget, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 187 |
185 void gtk_chrome_cookie_view_display_appcache_created( | 188 void gtk_chrome_cookie_view_display_appcache_created( |
186 GtkChromeCookieView* self, | 189 GtkChromeCookieView* self, |
187 const GURL& manifest_url); | 190 const GURL& manifest_url); |
188 | 191 |
189 // If |editable_expiration| was true at construction time, returns the value of | 192 // If |editable_expiration| was true at construction time, returns the value of |
190 // the combo box. Otherwise, returns false. | 193 // the combo box. Otherwise, returns false. |
191 bool gtk_chrome_cookie_view_session_expires(GtkChromeCookieView* self); | 194 bool gtk_chrome_cookie_view_session_expires(GtkChromeCookieView* self); |
192 | 195 |
193 #endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ | 196 #endif // CHROME_BROWSER_UI_GTK_GTK_CHROME_COOKIE_VIEW_H_ |
OLD | NEW |