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