blob: 6e9a7408188006cbed08a7d765c79a63913d43ea [file] [log] [blame]
[email protected]77767742010-03-02 22:06:271// 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]32b76ef2010-07-26 23:08:247#pragma once
[email protected]77767742010-03-02 22:06:278
9#include "app/combobox_model.h"
10
11#include "base/basictypes.h"
[email protected]a88fe62c2010-08-22 16:49:3712#include "base/string16.h"
[email protected]77767742010-03-02 22:06:2713#include "chrome/common/content_settings.h"
14
15class ContentSettingComboModel : public ComboboxModel {
16 public:
[email protected]eee34522010-07-14 08:15:4817 explicit ContentSettingComboModel(bool show_session);
[email protected]77767742010-03-02 22:06:2718 virtual ~ContentSettingComboModel();
19
20 virtual int GetItemCount();
[email protected]a88fe62c2010-08-22 16:49:3721 virtual string16 GetItemAt(int index);
[email protected]77767742010-03-02 22:06:2722
23 ContentSetting SettingForIndex(int index);
24
25 int IndexForSetting(ContentSetting);
26
27 private:
[email protected]eee34522010-07-14 08:15:4828 const bool show_session_;
[email protected]77767742010-03-02 22:06:2729
[email protected]77767742010-03-02 22:06:2730 DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel);
31};
32
33#endif // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_