Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #ifndef CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ | 6 #define CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 14 #include "chrome/browser/remove_rows_table_model.h" | 14 #include "chrome/browser/remove_rows_table_model.h" |
| 15 #include "content/browser/plugin_service.h" | |
|
jam
2011/09/21 00:04:51
nit: why? we should try to forward declare as much
| |
| 15 #include "content/common/notification_observer.h" | 16 #include "content/common/notification_observer.h" |
| 16 #include "webkit/plugins/npapi/plugin_list.h" | |
| 17 | 17 |
| 18 class PluginExceptionsTableModel : public RemoveRowsTableModel, | 18 class PluginExceptionsTableModel : public RemoveRowsTableModel, |
| 19 public NotificationObserver { | 19 public NotificationObserver { |
| 20 public: | 20 public: |
| 21 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map, | 21 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map, |
| 22 HostContentSettingsMap* otr_content_settings_map); | 22 HostContentSettingsMap* otr_content_settings_map); |
| 23 virtual ~PluginExceptionsTableModel(); | 23 virtual ~PluginExceptionsTableModel(); |
| 24 | 24 |
| 25 // Load plugin exceptions from the HostContentSettingsMaps. You should call | 25 // Load plugin exceptions from the HostContentSettingsMaps. You should call |
| 26 // this method after creating a new PluginExceptionsTableModel. | 26 // this method after creating a new PluginExceptionsTableModel. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 bool updates_disabled_; | 74 bool updates_disabled_; |
| 75 | 75 |
| 76 // Weak, can be NULL. Our owner should manage its lifetime, see | 76 // Weak, can be NULL. Our owner should manage its lifetime, see |
| 77 // TableModel::SetObserver(). | 77 // TableModel::SetObserver(). |
| 78 ui::TableModelObserver* observer_; | 78 ui::TableModelObserver* observer_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); | 80 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ | 83 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ |
| OLD | NEW |