| Index: chrome/browser/content_settings/tab_specific_content_settings.h
|
| diff --git a/chrome/browser/content_settings/tab_specific_content_settings.h b/chrome/browser/content_settings/tab_specific_content_settings.h
|
| index 1948126ae763fc5ec33bf00db880477894180863..90362c8c6251ad59178161f96a4ac0dd03c152d9 100644
|
| --- a/chrome/browser/content_settings/tab_specific_content_settings.h
|
| +++ b/chrome/browser/content_settings/tab_specific_content_settings.h
|
| @@ -55,6 +55,15 @@ class TabSpecificContentSettings
|
| static const MicrophoneCameraState CAMERA_ACCESSED = 1 << 2;
|
| static const MicrophoneCameraState CAMERA_BLOCKED = 1 << 3;
|
|
|
| + // UMA statistics for the mixed content shield
|
| + enum MixedScriptAction {
|
| + MIXED_SCRIPT_ACTION_DISPLAYED_SHIELD = 0,
|
| + MIXED_SCRIPT_ACTION_DISPLAYED_BUBBLE,
|
| + MIXED_SCRIPT_ACTION_CLICKED_ALLOW,
|
| + MIXED_SCRIPT_ACTION_CLICKED_LEARN_MORE,
|
| + MIXED_SCRIPT_ACTION_COUNT
|
| + };
|
| +
|
| // Classes that want to be notified about site data events must implement
|
| // this abstract class and add themselves as observer to the
|
| // |TabSpecificContentSettings|.
|
| @@ -83,6 +92,8 @@ class TabSpecificContentSettings
|
|
|
| virtual ~TabSpecificContentSettings();
|
|
|
| + static void RecordMixedScriptAction(MixedScriptAction action);
|
| +
|
| // Returns the object given a render view's id.
|
| static TabSpecificContentSettings* Get(int render_process_id,
|
| int render_view_id);
|
|
|