summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_settings_window.h
blob: a77a5792358ade0df14c7a6f2fa4844757f52dae (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
33
34
35
36
// 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_SETTINGS_WINDOW_H_
#define CHROME_BROWSER_CONTENT_SETTINGS_WINDOW_H_

class PrefService;
class Profile;

// A particular tab within the Content Settings dialog.  When passed to
// ShowContentSettingsWindow(), CONTENT_SETTINGS_TAB_DEFAULT means select the
// last.
enum ContentSettingsTab {
  CONTENT_SETTINGS_TAB_DEFAULT = -1,
  CONTENT_SETTINGS_TAB_COOKIES,
  CONTENT_SETTINGS_TAB_IMAGES,
  CONTENT_SETTINGS_TAB_JAVASCRIPT,
  CONTENT_SETTINGS_TAB_PLUGINS,
  CONTENT_SETTINGS_PAGE_POPUPS,
  CONTENT_SETTINGS_NUM_TABS
};

class ContentSettings {
 public:
  // Show the Content Settings window selecting the specified page.
  // If a Content Settings window is currently open, this just activates it
  // instead of opening a new one.
  static void ShowContentSettingsWindow(ContentSettingsTab page,
                                        Profile* profile);

  static void RegisterPrefs(PrefService* prefs);
};

#endif  // CHROME_BROWSER_CONTENT_SETTINGS_WINDOW_H_