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

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

Issue 2868042: Backend changes for notifications content settings. (Closed)
Patch Set: '' Created 10 years, 5 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
OLDNEW
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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 virtual void RemoveAll(); 24 virtual void RemoveAll();
25 25
26 // TableModel overrides: 26 // TableModel overrides:
27 virtual int RowCount(); 27 virtual int RowCount();
28 virtual std::wstring GetText(int row, int column_id); 28 virtual std::wstring GetText(int row, int column_id);
29 virtual void SetObserver(TableModelObserver* observer); 29 virtual void SetObserver(TableModelObserver* observer);
30 30
31 private: 31 private:
32 struct Entry { 32 struct Entry {
33 Entry(const GURL& origin, ContentSetting setting); 33 Entry(const GURL& origin, ContentSetting setting);
34 bool operator<(const Entry& b) const;
34 35
35 GURL origin; 36 GURL origin;
36 ContentSetting setting; 37 ContentSetting setting;
37 }; 38 };
38 39
39 DesktopNotificationService* service_; 40 DesktopNotificationService* service_;
40 41
41 typedef std::vector<Entry> EntriesVector; 42 typedef std::vector<Entry> EntriesVector;
42 EntriesVector entries_; 43 EntriesVector entries_;
43 44
44 TableModelObserver* observer_; 45 TableModelObserver* observer_;
45 46
46 DISALLOW_COPY_AND_ASSIGN(NotificationExceptionsTableModel); 47 DISALLOW_COPY_AND_ASSIGN(NotificationExceptionsTableModel);
47 }; 48 };
48 49
49 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_ 50 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_EXCEPTIONS_TABLE_MODEL_H_
50 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698