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

Unified Diff: content/renderer/p2p/network_manager_uma.h

Issue 1349823004: Check media permissions (mic/camera) before exposing local addresses to WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix test issue, fix windows build issue. Created 5 years, 3 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/renderer/p2p/network_manager_uma.h
diff --git a/content/renderer/p2p/network_manager_uma.h b/content/renderer/p2p/network_manager_uma.h
new file mode 100644
index 0000000000000000000000000000000000000000..f7c636430765f60b4b192b99362a36504b7c1f2c
--- /dev/null
+++ b/content/renderer/p2p/network_manager_uma.h
@@ -0,0 +1,28 @@
+// Copyright 2015 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 CONTENT_RENDERER_P2P_NETWORK_MANAGER_UMA_H_
+#define CONTENT_RENDERER_P2P_NETWORK_MANAGER_UMA_H_
+
+namespace base {
+class TimeDelta;
+} // namespace
+
+namespace content {
+
+// Need to be kept the same order as in histograms.xml
+enum IPPermissionStatus {
+ PERMISSION_NOT_REQUESTED, // Multiple routes is not requested.
+ PERMISSION_DENIED, // Requested but denied.
+ PERMISSION_GRANTED, // Requested and granted.
+ PERMISSION_UNKNOWN, // Requested but have never fired SignalNetworksChanged.
+ PERMISSION_MAX,
+};
+
+void ReportIPPermissionStatus(IPPermissionStatus status);
+void ReportTimeToUpdateNetworkList(const base::TimeDelta& ticks);
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_P2P_NETWORK_MANAGER_UMA_H_
« no previous file with comments | « content/renderer/p2p/filtering_network_manager_unittest.cc ('k') | content/renderer/p2p/network_manager_uma.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698