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/notifications/notification_exceptions_table_model.h" | 5 #include "chrome/browser/notifications/notification_exceptions_table_model.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/l10n_util_collator.h" | |
9 #include "app/table_model_observer.h" | 8 #include "app/table_model_observer.h" |
10 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
11 #include "chrome/common/content_settings_helper.h" | 10 #include "chrome/common/content_settings_helper.h" |
12 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
13 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
14 | 13 |
15 NotificationExceptionsTableModel::NotificationExceptionsTableModel( | 14 NotificationExceptionsTableModel::NotificationExceptionsTableModel( |
16 DesktopNotificationService* service) | 15 DesktopNotificationService* service) |
17 : service_(service), | 16 : service_(service), |
18 observer_(NULL) { | 17 observer_(NULL) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ContentSetting in_setting) | 91 ContentSetting in_setting) |
93 : origin(in_origin), | 92 : origin(in_origin), |
94 setting(in_setting) { | 93 setting(in_setting) { |
95 } | 94 } |
96 | 95 |
97 bool NotificationExceptionsTableModel::Entry::operator<( | 96 bool NotificationExceptionsTableModel::Entry::operator<( |
98 const NotificationExceptionsTableModel::Entry& b) const { | 97 const NotificationExceptionsTableModel::Entry& b) const { |
99 DCHECK_NE(origin, b.origin); | 98 DCHECK_NE(origin, b.origin); |
100 return origin < b.origin; | 99 return origin < b.origin; |
101 } | 100 } |
OLD | NEW |