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

Unified Diff: chrome/browser/net/safe_search_util.h

Issue 2401733002: Revert "Added a ForceYouTubeRestrict policy and deprecated the old ForceYouTubeSafetyMode policy" (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « chrome/browser/net/chrome_network_delegate_unittest.cc ('k') | chrome/browser/net/safe_search_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/safe_search_util.h
diff --git a/chrome/browser/net/safe_search_util.h b/chrome/browser/net/safe_search_util.h
index 4b9a5ad7856d68a7f88bb1258710438f8f847426..2e9a0edb7afe9f269d3fc777d9d45627fd381751 100644
--- a/chrome/browser/net/safe_search_util.h
+++ b/chrome/browser/net/safe_search_util.h
@@ -14,36 +14,20 @@ class URLRequest;
namespace safe_search_util {
-// Values for YouTube Restricted Mode.
-// VALUES MUST COINCIDE WITH ForceYouTubeRestrict POLICY.
-enum YouTubeRestrictMode {
- YOUTUBE_RESTRICT_OFF = 0, // Do not restrict YouTube content. YouTube
- // might still restrict content based on its
- // user settings.
- YOUTUBE_RESTRICT_MODERATE = 1, // Enforce at least a moderately strict
- // content filter for YouTube.
- YOUTUBE_RESTRICT_STRICT = 2, // Enforce a strict content filter for YouTube.
- YOUTUBE_RESTRICT_COUNT = 3 // Enum counter
-};
-
-
// If |request| is a request to Google Web Search, enforces that the SafeSearch
// query parameters are set to active. Sets |new_url| to a copy of the request
// url in which the query part contains the new values of the parameters.
void ForceGoogleSafeSearch(const net::URLRequest* request, GURL* new_url);
-// Does nothing if |request| is not a request to YouTube. Otherwise, if |mode|
-// is not |YOUTUBE_RESTRICT_OFF|, enforces a minimum YouTube Restrict mode
-// by setting YouTube Restrict header. Setting |YOUTUBE_RESTRICT_OFF| is not
-// supported and will do nothing in production.
-void ForceYouTubeRestrict(const net::URLRequest* request,
- net::HttpRequestHeaders* headers,
- YouTubeRestrictMode mode);
+// If |request| is a request to YouTube, enforces YouTube's Safety Mode by
+// setting YouTube's Safety Mode header.
+void ForceYouTubeSafetyMode(const net::URLRequest* request,
+ net::HttpRequestHeaders* headers);
int GetForceGoogleSafeSearchCountForTesting();
-int GetForceYouTubeRestrictCountForTesting();
+int GetForceYouTubeSafetyModeCountForTesting();
void ClearForceGoogleSafeSearchCountForTesting();
-void ClearForceYouTubeRestrictCountForTesting();
+void ClearForceYouTubeSafetyModeCountForTesting();
} // namespace safe_search_util
« no previous file with comments | « chrome/browser/net/chrome_network_delegate_unittest.cc ('k') | chrome/browser/net/safe_search_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698