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

Unified Diff: content/browser/renderer_host/pepper/pepper_socket_utils.h

Issue 1132093003: Add metrics to record TCP/UDP connections made from Flash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/pepper/pepper_socket_utils.h
diff --git a/content/browser/renderer_host/pepper/pepper_socket_utils.h b/content/browser/renderer_host/pepper/pepper_socket_utils.h
index e7bc1e3eb04102904db5ca5306c7e2f9dac14b85..00ef8c96bfef5ac8d54a19d253966b7c317c31c8 100644
--- a/content/browser/renderer_host/pepper/pepper_socket_utils.h
+++ b/content/browser/renderer_host/pepper/pepper_socket_utils.h
@@ -22,6 +22,15 @@ namespace content {
namespace pepper_socket_utils {
+// Enum used for recording histograms about whether the plugin is running in a
+// secure context. If this is changed, histograms.xml should be updated
+// accordingly.
+enum PluginContextSecurity {
+ PLUGIN_CONTEXT_SECURE,
+ PLUGIN_CONTEXT_INSECURE,
+ PLUGIN_CONTEXT_SECURITY_NUM_ENTRIES
+};
+
SocketPermissionRequest CreateSocketPermissionRequest(
SocketPermissionRequest::OperationType type,
const PP_NetAddress_Private& net_addr);

Powered by Google App Engine
This is Rietveld 408576698