OLD | NEW |
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> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // TableModel methods: | 36 // TableModel methods: |
37 virtual int RowCount() OVERRIDE; | 37 virtual int RowCount() OVERRIDE; |
38 virtual string16 GetText(int row, int column_id) OVERRIDE; | 38 virtual string16 GetText(int row, int column_id) OVERRIDE; |
39 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; | 39 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; |
40 virtual bool HasGroups() OVERRIDE; | 40 virtual bool HasGroups() OVERRIDE; |
41 virtual Groups GetGroups() OVERRIDE; | 41 virtual Groups GetGroups() OVERRIDE; |
42 virtual int GetGroupID(int row) OVERRIDE; | 42 virtual int GetGroupID(int row) OVERRIDE; |
43 | 43 |
44 // NotificationObserver methods: | 44 // NotificationObserver methods: |
45 virtual void Observe(NotificationType type, | 45 virtual void Observe(int 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( | 51 virtual void GetPlugins( |
52 std::vector<webkit::npapi::PluginGroup>* plugin_groups); | 52 std::vector<webkit::npapi::PluginGroup>* plugin_groups); |
53 | 53 |
54 private: | 54 private: |
55 friend class PluginExceptionsTableModelTest; | 55 friend class PluginExceptionsTableModelTest; |
(...skipping 20 matching lines...) Expand all Loading... |
76 bool updates_disabled_; | 76 bool updates_disabled_; |
77 | 77 |
78 // Weak, can be NULL. Our owner should manage its lifetime, see | 78 // Weak, can be NULL. Our owner should manage its lifetime, see |
79 // TableModel::SetObserver(). | 79 // TableModel::SetObserver(). |
80 ui::TableModelObserver* observer_; | 80 ui::TableModelObserver* observer_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); | 82 DISALLOW_COPY_AND_ASSIGN(PluginExceptionsTableModel); |
83 }; | 83 }; |
84 | 84 |
85 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ | 85 #endif // CHROME_BROWSER_PLUGIN_EXCEPTIONS_TABLE_MODEL_H_ |
OLD | NEW |