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

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

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 30
31 // RemoveRowsTableModel methods: 31 // RemoveRowsTableModel methods:
32 virtual bool CanRemoveRows(const Rows& rows) const; 32 virtual bool CanRemoveRows(const Rows& rows) const;
33 virtual void RemoveRows(const Rows& rows); 33 virtual void RemoveRows(const Rows& rows);
34 virtual void RemoveAll(); 34 virtual void RemoveAll();
35 35
36 // TableModel methods: 36 // TableModel methods:
37 virtual int RowCount(); 37 virtual int RowCount();
38 virtual std::wstring GetText(int row, int column_id); 38 virtual std::wstring GetText(int row, int column_id);
39 virtual void SetObserver(TableModelObserver* observer); 39 virtual void SetObserver(TableModelObserver* observer);
40 virtual bool HasGroups() { return true; } 40 virtual bool HasGroups();
41 virtual Groups GetGroups(); 41 virtual Groups GetGroups();
42 virtual int GetGroupID(int row); 42 virtual int GetGroupID(int row);
43 43
44 // NotificationObserver methods: 44 // NotificationObserver methods:
45 virtual void Observe(NotificationType type, 45 virtual void Observe(NotificationType type,
46 const NotificationSource& source, 46 const NotificationSource& source,
47 const NotificationDetails& details); 47 const NotificationDetails& details);
48 48
49 protected: 49 protected:
50 // Subclasses can override this method for testing. 50 // Subclasses can override this method for testing.
51 virtual void GetPlugins(std::vector<PluginGroup>* plugin_groups); 51 virtual void GetPlugins(std::vector<PluginGroup>* plugin_groups);
52 52
53 private: 53 private:
54 friend class PluginExceptionsTableModelTest; 54 friend class PluginExceptionsTableModelTest;
55 55
56 struct SettingsEntry { 56 struct SettingsEntry {
57 ContentSettingsPattern pattern; 57 ContentSettingsPattern pattern;
58 int plugin_id; 58 int plugin_id;
59 ContentSetting setting; 59 ContentSetting setting;
60 bool is_otr; 60 bool is_otr;
61 }; 61 };
62 62
63 void ClearSettings(); 63 void ClearSettings();
64 void ReloadSettings(); 64 void ReloadSettings();
65 65
66 scoped_refptr<HostContentSettingsMap> map_; 66 scoped_refptr<HostContentSettingsMap> map_;
67 scoped_refptr<HostContentSettingsMap> otr_map_; 67 scoped_refptr<HostContentSettingsMap> otr_map_;
68 68
69 std::deque<SettingsEntry> settings_; 69 std::deque<SettingsEntry> settings_;
70 std::deque<int> row_counts_; 70 std::deque<int> row_counts_;
71 std::deque<std::string> resources_; 71 std::deque<std::string> resources_;
72 TableModel::Groups groups_; 72 TableModel::Groups groups_;
73 73
74 NotificationRegistrar registrar_; 74 NotificationRegistrar registrar_;
75 bool updates_disabled_; 75 bool updates_disabled_;
76 TableModelObserver* observer_; 76 TableModelObserver* observer_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); 78 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel);
79 }; 79 };
80 80
81 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ 81 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/plugin_exceptions_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698