OLD | NEW |
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_CONTENT_SETTING_COMBO_MODEL_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ |
7 | 7 |
8 #include "app/combobox_model.h" | 8 #include "app/combobox_model.h" |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/common/content_settings.h" | 11 #include "chrome/common/content_settings.h" |
12 | 12 |
13 class ContentSettingComboModel : public ComboboxModel { | 13 class ContentSettingComboModel : public ComboboxModel { |
14 public: | 14 public: |
15 explicit ContentSettingComboModel(bool show_ask); | 15 explicit ContentSettingComboModel(bool show_session); |
16 virtual ~ContentSettingComboModel(); | 16 virtual ~ContentSettingComboModel(); |
17 | 17 |
18 virtual int GetItemCount(); | 18 virtual int GetItemCount(); |
19 | 19 |
20 virtual std::wstring GetItemAt(int index); | 20 virtual std::wstring GetItemAt(int index); |
21 | 21 |
22 ContentSetting SettingForIndex(int index); | 22 ContentSetting SettingForIndex(int index); |
23 | 23 |
24 int IndexForSetting(ContentSetting); | 24 int IndexForSetting(ContentSetting); |
25 | 25 |
26 private: | 26 private: |
27 const bool show_ask_; | 27 const bool show_session_; |
28 | 28 |
29 DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel); | 29 DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel); |
30 }; | 30 }; |
31 | 31 |
32 #endif // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ | 32 #endif // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_ |
OLD | NEW |