Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: chrome/browser/content_setting_combo_model.h

Issue 2963006: Remove the cookie prompt from the settings UI and migrate prefs from ask to block. (Closed)
Patch Set: updates Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/content_exceptions_table_model.cc ('k') | chrome/browser/content_setting_combo_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698