| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/cookie_modal_dialog.h" | 5 #include "chrome/browser/cookie_modal_dialog.h" |
| 6 | 6 |
| 7 #include "app/gtk_util.h" | 7 #include "app/gtk_util.h" |
| 8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_LOCAL_STORAGE) { | 111 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_LOCAL_STORAGE) { |
| 112 gtk_chrome_cookie_view_display_local_storage_item( | 112 gtk_chrome_cookie_view_display_local_storage_item( |
| 113 cookie_view, | 113 cookie_view, |
| 114 origin().host(), | 114 origin().host(), |
| 115 local_storage_key(), | 115 local_storage_key(), |
| 116 local_storage_value()); | 116 local_storage_value()); |
| 117 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_DATABASE) { | 117 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_DATABASE) { |
| 118 gtk_chrome_cookie_view_display_database_accessed( | 118 gtk_chrome_cookie_view_display_database_accessed( |
| 119 cookie_view, | 119 cookie_view, |
| 120 origin().host(), | 120 origin().host(), |
| 121 database_name()); | 121 database_name(), |
| 122 display_name(), |
| 123 estimated_size()); |
| 122 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_APPCACHE) { | 124 } else if (type == CookiePromptModalDialog::DIALOG_TYPE_APPCACHE) { |
| 123 gtk_chrome_cookie_view_display_appcache_created( | 125 gtk_chrome_cookie_view_display_appcache_created( |
| 124 cookie_view, | 126 cookie_view, |
| 125 appcache_manifest_url()); | 127 appcache_manifest_url()); |
| 126 } else { | 128 } else { |
| 127 NOTIMPLEMENTED(); | 129 NOTIMPLEMENTED(); |
| 128 } | 130 } |
| 129 gtk_container_add(GTK_CONTAINER(expander), GTK_WIDGET(cookie_view)); | 131 gtk_container_add(GTK_CONTAINER(expander), GTK_WIDGET(cookie_view)); |
| 130 | 132 |
| 131 gtk_box_pack_end(GTK_BOX(content_area), GTK_WIDGET(expander), | 133 gtk_box_pack_end(GTK_BOX(content_area), GTK_WIDGET(expander), |
| (...skipping 21 matching lines...) Expand all Loading... |
| 153 } else { | 155 } else { |
| 154 BlockSiteData(false); | 156 BlockSiteData(false); |
| 155 } | 157 } |
| 156 gtk_widget_destroy(GTK_WIDGET(dialog)); | 158 gtk_widget_destroy(GTK_WIDGET(dialog)); |
| 157 | 159 |
| 158 CompleteDialog(); | 160 CompleteDialog(); |
| 159 | 161 |
| 160 gtk_util::AppModalDismissedUngroupWindows(); | 162 gtk_util::AppModalDismissedUngroupWindows(); |
| 161 delete this; | 163 delete this; |
| 162 } | 164 } |
| OLD | NEW |