summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_setting_combo_model.h
blob: 255f02ae52d058ba101c6fbc8de24e7edfd5fa5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_
#define CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_

#include "app/combobox_model.h"

#include "base/basictypes.h"
#include "chrome/common/content_settings.h"

class ContentSettingComboModel : public ComboboxModel {
 public:
  explicit ContentSettingComboModel(bool show_session);
  virtual ~ContentSettingComboModel();

  virtual int GetItemCount();

  virtual std::wstring GetItemAt(int index);

  ContentSetting SettingForIndex(int index);

  int IndexForSetting(ContentSetting);

 private:
  const bool show_session_;

  DISALLOW_COPY_AND_ASSIGN(ContentSettingComboModel);
};

#endif  // CHROME_BROWSER_CONTENT_SETTING_COMBO_MODEL_H_