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

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: '' 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 #include "webkit/plugins/npapi/plugin_list.h"
17 17
18 namespace webkit {
19 namespace npapi {
20 class PluginGroup;
21 }
22 }
23
18 class PluginExceptionsTableModel : public RemoveRowsTableModel, 24 class PluginExceptionsTableModel : public RemoveRowsTableModel,
19 public NotificationObserver { 25 public NotificationObserver {
20 public: 26 public:
21 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map, 27 PluginExceptionsTableModel(HostContentSettingsMap* content_settings_map,
22 HostContentSettingsMap* otr_content_settings_map); 28 HostContentSettingsMap* otr_content_settings_map);
23 virtual ~PluginExceptionsTableModel(); 29 virtual ~PluginExceptionsTableModel();
24 30
25 // Load plugin exceptions from the HostContentSettingsMaps. You should call 31 // Load plugin exceptions from the HostContentSettingsMaps. You should call
26 // this method after creating a new PluginExceptionsTableModel. 32 // this method after creating a new PluginExceptionsTableModel.
27 void LoadSettings(); 33 void LoadSettings();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool updates_disabled_; 80 bool updates_disabled_;
75 81
76 // Weak, can be NULL. Our owner should manage its lifetime, see 82 // Weak, can be NULL. Our owner should manage its lifetime, see
77 // TableModel::SetObserver(). 83 // TableModel::SetObserver().
78 ui::TableModelObserver* observer_; 84 ui::TableModelObserver* observer_;
79 85
80 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); 86 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel);
81 }; 87 };
82 88
83 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 89 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698