| 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/gtk/options/content_exception_editor.h" | 5 #include "chrome/browser/gtk/options/content_exception_editor.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/content_exceptions_table_model.h" | 11 #include "chrome/browser/content_exceptions_table_model.h" |
| 12 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 12 #include "chrome/browser/gtk/gtk_util.h" | 13 #include "chrome/browser/gtk/gtk_util.h" |
| 13 #include "chrome/browser/host_content_settings_map.h" | |
| 14 #include "grit/app_resources.h" | 14 #include "grit/app_resources.h" |
| 15 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
| 16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
| 17 | 17 |
| 18 ContentExceptionEditor::ContentExceptionEditor( | 18 ContentExceptionEditor::ContentExceptionEditor( |
| 19 GtkWindow* parent, | 19 GtkWindow* parent, |
| 20 ContentExceptionEditor::Delegate* delegate, | 20 ContentExceptionEditor::Delegate* delegate, |
| 21 ContentExceptionsTableModel* model, | 21 ContentExceptionsTableModel* model, |
| 22 bool allow_off_the_record, | 22 bool allow_off_the_record, |
| 23 int index, | 23 int index, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 delegate_->AcceptExceptionEdit( | 129 delegate_->AcceptExceptionEdit( |
| 130 new_pattern, setting, is_off_the_record, index_, is_new()); | 130 new_pattern, setting, is_off_the_record, index_, is_new()); |
| 131 } | 131 } |
| 132 | 132 |
| 133 gtk_widget_destroy(dialog_); | 133 gtk_widget_destroy(dialog_); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void ContentExceptionEditor::OnWindowDestroy(GtkWidget* widget) { | 136 void ContentExceptionEditor::OnWindowDestroy(GtkWidget* widget) { |
| 137 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 137 MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 138 } | 138 } |
| OLD | NEW |