[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ | ||||
6 | #define CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ | ||||
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 7 | #pragma once |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 8 | |
9 | #include "app/combobox_model.h" | ||||
10 | |||||
11 | #include "base/basictypes.h" | ||||
[email protected] | a88fe62c | 2010-08-22 16:49:37 | [diff] [blame] | 12 | #include "base/string16.h" |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 13 | #include "chrome/common/content_settings.h" |
14 | |||||
15 | class ContentSettingComboModel : public ComboboxModel { | ||||
16 | public: | ||||
[email protected] | eee3452 | 2010-07-14 08:15:48 | [diff] [blame] | 17 | explicit ContentSettingComboModel(bool show_session); |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 18 | virtual ~ContentSettingComboModel(); |
19 | |||||
20 | virtual int GetItemCount(); | ||||
[email protected] | a88fe62c | 2010-08-22 16:49:37 | [diff] [blame] | 21 | virtual string16 GetItemAt(int index); |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 22 | |
23 | ContentSetting SettingForIndex(int index); | ||||
24 | |||||
25 | int IndexForSetting(ContentSetting); | ||||
26 | |||||
27 | private: | ||||
[email protected] | eee3452 | 2010-07-14 08:15:48 | [diff] [blame] | 28 | const bool show_session_; |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 29 | |
[email protected] | 7776774 | 2010-03-02 22:06:27 | [diff] [blame] | 30 | DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel); |
31 | }; | ||||
32 | |||||
33 | #endif // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ |