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 #ifndef CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ |
6 #define CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ | 6 #define CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/table_model.h" | 11 #include "app/table_model.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "chrome/common/content_settings.h" | 13 #include "chrome/common/content_settings.h" |
14 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
15 #include "chrome/browser/host_content_settings_map.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map.h" |
16 | 16 |
17 class ContentExceptionsTableModel : public TableModel { | 17 class ContentExceptionsTableModel : public TableModel { |
18 public: | 18 public: |
19 ContentExceptionsTableModel(HostContentSettingsMap* map, | 19 ContentExceptionsTableModel(HostContentSettingsMap* map, |
20 HostContentSettingsMap* off_the_record_map, | 20 HostContentSettingsMap* off_the_record_map, |
21 ContentSettingsType content_type); | 21 ContentSettingsType content_type); |
22 virtual ~ContentExceptionsTableModel(); | 22 virtual ~ContentExceptionsTableModel(); |
23 | 23 |
24 HostContentSettingsMap* map() const { return map_; } | 24 HostContentSettingsMap* map() const { return map_; } |
25 HostContentSettingsMap* off_the_record_map() const { | 25 HostContentSettingsMap* off_the_record_map() const { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 scoped_refptr<HostContentSettingsMap> off_the_record_map_; | 69 scoped_refptr<HostContentSettingsMap> off_the_record_map_; |
70 ContentSettingsType content_type_; | 70 ContentSettingsType content_type_; |
71 HostContentSettingsMap::SettingsForOneType entries_; | 71 HostContentSettingsMap::SettingsForOneType entries_; |
72 HostContentSettingsMap::SettingsForOneType off_the_record_entries_; | 72 HostContentSettingsMap::SettingsForOneType off_the_record_entries_; |
73 TableModelObserver* observer_; | 73 TableModelObserver* observer_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(ContentExceptionsTableModel); | 75 DISALLOW_COPY_AND_ASSIGN(ContentExceptionsTableModel); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ | 78 #endif // CHROME_BROWSER_CONTENT_EXCEPTIONS_TABLE_MODEL_H_ |
OLD | NEW |