diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-05 14:36:22 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-03-05 14:37:32 +0100 |
commit | 28db9b54de6402bd38770ecc1d620255e9d1e78f (patch) | |
tree | 469a957ff6b9b6d0ee9fb4074b9139cbaa050443 /chromium/chrome/common/ssl_insecure_content.h | |
parent | 3239a38a9b35d29e483b7bd67b786b4f9d109908 (diff) | |
parent | 248b70b82a40964d5594eb04feca0fa36716185d (diff) | |
download | qtwebengine-chromium-28db9b54de6402bd38770ecc1d620255e9d1e78f.tar.gz |
Merge remote-tracking branch 'origin/upstream-master' into 79-based
Conflicts:
chromium/chrome/common/pref_names.cc
chromium/chrome/common/pref_names.h
Change-Id: I9be20fb8dfd946e3db1fa298dce076db5fd1f397
Diffstat (limited to 'chromium/chrome/common/ssl_insecure_content.h')
-rw-r--r-- | chromium/chrome/common/ssl_insecure_content.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/chromium/chrome/common/ssl_insecure_content.h b/chromium/chrome/common/ssl_insecure_content.h new file mode 100644 index 00000000000..45ce1597d03 --- /dev/null +++ b/chromium/chrome/common/ssl_insecure_content.h @@ -0,0 +1,61 @@ +// Copyright 2016 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_COMMON_SSL_INSECURE_CONTENT_H_ +#define CHROME_COMMON_SSL_INSECURE_CONTENT_H_ + +class GURL; + +// Insecure content types used in the SSL.InsecureContent histogram. +// This enum is histogrammed, so do not add, reorder, or remove values. +enum class SslInsecureContentType { + DISPLAY = 0, + DISPLAY_HOST_GOOGLE, // deprecated + DISPLAY_HOST_WWW_GOOGLE, // deprecated + DISPLAY_HTML, + RUN, + RUN_HOST_GOOGLE, // deprecated + RUN_HOST_WWW_GOOGLE, // deprecated + RUN_TARGET_YOUTUBE, // deprecated + RUN_JS, + RUN_CSS, + RUN_SWF, + DISPLAY_HOST_YOUTUBE, // deprecated + RUN_HOST_YOUTUBE, // deprecated + RUN_HOST_GOOGLEUSERCONTENT, // deprecated + DISPLAY_HOST_MAIL_GOOGLE, // deprecated + RUN_HOST_MAIL_GOOGLE, // deprecated + DISPLAY_HOST_PLUS_GOOGLE, // deprecated + RUN_HOST_PLUS_GOOGLE, // deprecated + DISPLAY_HOST_DOCS_GOOGLE, // deprecated + RUN_HOST_DOCS_GOOGLE, // deprecated + DISPLAY_HOST_SITES_GOOGLE, // deprecated + RUN_HOST_SITES_GOOGLE, // deprecated + DISPLAY_HOST_PICASAWEB_GOOGLE, // deprecated + RUN_HOST_PICASAWEB_GOOGLE, // deprecated + DISPLAY_HOST_GOOGLE_READER, // deprecated + RUN_HOST_GOOGLE_READER, // deprecated + DISPLAY_HOST_CODE_GOOGLE, // deprecated + RUN_HOST_CODE_GOOGLE, // deprecated + DISPLAY_HOST_GROUPS_GOOGLE, // deprecated + RUN_HOST_GROUPS_GOOGLE, // deprecated + DISPLAY_HOST_MAPS_GOOGLE, // deprecated + RUN_HOST_MAPS_GOOGLE, // deprecated + DISPLAY_HOST_GOOGLE_SUPPORT, // deprecated + RUN_HOST_GOOGLE_SUPPORT, // deprecated + DISPLAY_HOST_GOOGLE_INTL, // deprecated + RUN_HOST_GOOGLE_INTL, // deprecated + NUM_EVENTS +}; + +// Reports insecure content to the SSL.InsecureContent histogram using the +// provided |signal|. +void ReportInsecureContent(SslInsecureContentType signal); + +// Reports insecure content displayed or ran if |resource_URL| matches specific +// file types. +void FilteredReportInsecureContentDisplayed(const GURL& resource_gurl); +void FilteredReportInsecureContentRan(const GURL& resource_gurl); + +#endif // CHROME_COMMON_SSL_INSECURE_CONTENT_H_ |