Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: chrome/browser/notifications/notification_exceptions_table_model.cc

Issue 7885006: Moving ContentSettingsPattern from chrome/browser/content_settings to chrome/common. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/content_settings/content_settings_pattern.h"
13 #include "chrome/browser/content_settings/host_content_settings_map.h" 12 #include "chrome/browser/content_settings/host_content_settings_map.h"
14 #include "chrome/common/chrome_notification_types.h" 13 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/common/content_settings.h" 14 #include "chrome/common/content_settings.h"
15 #include "chrome/common/content_settings_pattern.h"
16 #include "chrome/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
17 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
18 #include "content/common/notification_service.h" 18 #include "content/common/notification_service.h"
19 #include "grit/generated_resources.h" 19 #include "grit/generated_resources.h"
20 #include "ui/base/l10n/l10n_util.h" 20 #include "ui/base/l10n/l10n_util.h"
21 #include "ui/base/models/table_model_observer.h" 21 #include "ui/base/models/table_model_observer.h"
22 22
23 struct NotificationExceptionsTableModel::Entry { 23 struct NotificationExceptionsTableModel::Entry {
24 Entry(const ContentSettingsPattern& origin, ContentSetting setting); 24 Entry(const ContentSettingsPattern& origin, ContentSetting setting);
25 bool operator<(const Entry& b) const; 25 bool operator<(const Entry& b) const;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ContentSetting in_setting) 135 ContentSetting in_setting)
136 : origin(in_origin), 136 : origin(in_origin),
137 setting(in_setting) { 137 setting(in_setting) {
138 } 138 }
139 139
140 bool NotificationExceptionsTableModel::Entry::operator<( 140 bool NotificationExceptionsTableModel::Entry::operator<(
141 const NotificationExceptionsTableModel::Entry& b) const { 141 const NotificationExceptionsTableModel::Entry& b) const {
142 DCHECK_NE(origin, b.origin); 142 DCHECK_NE(origin, b.origin);
143 return origin.ToString() < b.origin.ToString(); 143 return origin.ToString() < b.origin.ToString();
144 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698