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

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

Issue 5574001: Move ContentSettingsDetails and Pattern out of HostContentSettingsMap as separate classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/content_settings
Patch Set: updates Created 10 years 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) 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_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 <deque> 9 #include <deque>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const NotificationDetails& details); 48 const NotificationDetails& details);
49 49
50 protected: 50 protected:
51 // Subclasses can override this method for testing. 51 // Subclasses can override this method for testing.
52 virtual void GetPlugins(NPAPI::PluginList::PluginMap* plugins); 52 virtual void GetPlugins(NPAPI::PluginList::PluginMap* plugins);
53 53
54 private: 54 private:
55 friend class plugin_test_internal::PluginExceptionsTableModelTest; 55 friend class plugin_test_internal::PluginExceptionsTableModelTest;
56 56
57 struct SettingsEntry { 57 struct SettingsEntry {
58 HostContentSettingsMap::Pattern pattern; 58 ContentSettingsPattern pattern;
59 int plugin_id; 59 int plugin_id;
60 ContentSetting setting; 60 ContentSetting setting;
61 bool is_otr; 61 bool is_otr;
62 }; 62 };
63 63
64 void ClearSettings(); 64 void ClearSettings();
65 void ReloadSettings(); 65 void ReloadSettings();
66 66
67 scoped_refptr<HostContentSettingsMap> map_; 67 scoped_refptr<HostContentSettingsMap> map_;
68 scoped_refptr<HostContentSettingsMap> otr_map_; 68 scoped_refptr<HostContentSettingsMap> otr_map_;
69 69
70 std::deque<SettingsEntry> settings_; 70 std::deque<SettingsEntry> settings_;
71 std::deque<int> row_counts_; 71 std::deque<int> row_counts_;
72 std::deque<std::string> resources_; 72 std::deque<std::string> resources_;
73 TableModel::Groups groups_; 73 TableModel::Groups groups_;
74 74
75 NotificationRegistrar registrar_; 75 NotificationRegistrar registrar_;
76 bool updates_disabled_; 76 bool updates_disabled_;
77 TableModelObserver* observer_; 77 TableModelObserver* observer_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); 79 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel);
80 }; 80 };
81 81
82 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 82 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698