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

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

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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 #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
17 namespace webkit {
18 namespace npapi {
19 class PluginGroup;
20 }
21 }
17 22
18 class PluginExceptionsTableModel : public RemoveRowsTableModel, 23 class PluginExceptionsTableModel : public RemoveRowsTableModel,
19 public NotificationObserver { 24 public NotificationObserver {
20 public: 25 public:
21 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map, 26 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map,
22 HostContentSettingsMap* otr_content_settings_map); 27 HostContentSettingsMap* otr_content_settings_map);
23 virtual ~PluginExceptionsTableModel(); 28 virtual ~PluginExceptionsTableModel();
24 29
25 // Load plugin exceptions from the HostContentSettingsMaps. You should call 30 // Load plugin exceptions from the HostContentSettingsMaps. You should call
26 // this method after creating a new PluginExceptionsTableModel. 31 // this method after creating a new PluginExceptionsTableModel.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool updates_disabled_; 79 bool updates_disabled_;
75 80
76 // Weak, can be NULL. Our owner should manage its lifetime, see 81 // Weak, can be NULL. Our owner should manage its lifetime, see
77 // TableModel::SetObserver(). 82 // TableModel::SetObserver().
78 ui::TableModelObserver* observer_; 83 ui::TableModelObserver* observer_;
79 84
80 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); 85 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel);
81 }; 86 };
82 87
83 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 88 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698