Home | History | Annotate | Download | only in common
      1 // Copyright (c) 2012 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_COMMON_CONTENT_SETTINGS_TYPES_H_
      6 #define CHROME_COMMON_CONTENT_SETTINGS_TYPES_H_
      7 
      8 // A particular type of content to care about.  We give the user various types
      9 // of controls over each of these.
     10 enum ContentSettingsType {
     11   // "DEFAULT" is only used as an argument to the Content Settings Window
     12   // opener; there it means "whatever was last shown".
     13   CONTENT_SETTINGS_TYPE_DEFAULT = -1,
     14   CONTENT_SETTINGS_TYPE_COOKIES = 0,
     15   CONTENT_SETTINGS_TYPE_IMAGES,
     16   CONTENT_SETTINGS_TYPE_JAVASCRIPT,
     17   CONTENT_SETTINGS_TYPE_PLUGINS,
     18   CONTENT_SETTINGS_TYPE_POPUPS,
     19   CONTENT_SETTINGS_TYPE_GEOLOCATION,
     20   CONTENT_SETTINGS_TYPE_NOTIFICATIONS,
     21   CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE,
     22   CONTENT_SETTINGS_TYPE_FULLSCREEN,
     23   CONTENT_SETTINGS_TYPE_MOUSELOCK,
     24   CONTENT_SETTINGS_TYPE_MIXEDSCRIPT,
     25   CONTENT_SETTINGS_TYPE_MEDIASTREAM,  // Default setting for MIC and CAMERA.
     26   CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC,
     27   CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA,
     28   CONTENT_SETTINGS_TYPE_PROTOCOL_HANDLERS,
     29   CONTENT_SETTINGS_TYPE_PPAPI_BROKER,
     30   CONTENT_SETTINGS_TYPE_AUTOMATIC_DOWNLOADS,
     31   CONTENT_SETTINGS_TYPE_MIDI_SYSEX,
     32 #if defined(OS_WIN)
     33   CONTENT_SETTINGS_TYPE_METRO_SWITCH_TO_DESKTOP,
     34 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS)
     35   CONTENT_SETTINGS_TYPE_PROTECTED_MEDIA_IDENTIFIER,
     36 #endif
     37   CONTENT_SETTINGS_NUM_TYPES,
     38 };
     39 
     40 #endif  // CHROME_COMMON_CONTENT_SETTINGS_TYPES_H_
     41