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

Side by Side Diff: chrome/browser/plugin_exceptions_table_model.h

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 #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/common/notification_observer.h" 15 #include "content/common/notification_observer.h"
16 #include "webkit/plugins/npapi/plugin_list.h" 16 #include "webkit/plugins/npapi/plugin_list.h"
17 17
18 struct WebPluginInfo;
19
20 class PluginExceptionsTableModel : public RemoveRowsTableModel, 18 class PluginExceptionsTableModel : public RemoveRowsTableModel,
21 public NotificationObserver { 19 public NotificationObserver {
22 public: 20 public:
23 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map, 21 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map,
24 HostContentSettingsMap* otr_content_settings_map); 22 HostContentSettingsMap* otr_content_settings_map);
25 virtual ~PluginExceptionsTableModel(); 23 virtual ~PluginExceptionsTableModel();
26 24
27 // Load plugin exceptions from the HostContentSettingsMaps. You should call 25 // Load plugin exceptions from the HostContentSettingsMaps. You should call
28 // this method after creating a new PluginExceptionsTableModel. 26 // this method after creating a new PluginExceptionsTableModel.
29 void LoadSettings(); 27 void LoadSettings();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool updates_disabled_; 74 bool updates_disabled_;
77 75
78 // Weak, can be NULL. Our owner should manage its lifetime, see 76 // Weak, can be NULL. Our owner should manage its lifetime, see
79 // TableModel::SetObserver(). 77 // TableModel::SetObserver().
80 ui::TableModelObserver* observer_; 78 ui::TableModelObserver* observer_;
81 79
82 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); 80 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel);
83 }; 81 };
84 82
85 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 83 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugin_data_remover.cc ('k') | chrome/browser/plugin_exceptions_table_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698