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

Side by Side Diff: chrome/browser/net/safe_search_util.h

Issue 354183002: Enforce SafetyMode for YouTube if prefs::kForceSafeSearch is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: YouTube Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_NET_SAFE_SEARCH_UTIL_H_
6 #define CHROME_BROWSER_NET_SAFE_SEARCH_UTIL_H_
7
8 class GURL;
9
10 namespace net {
11 class HttpRequestHeaders;
12 class URLRequest;
13 }
14
15 namespace safe_search_util {
16
17 // If |request| is a request to Google Web Search the function
battre 2014/07/08 13:43:06 nit: comma after "Google Web Search"
Marc Treib 2014/07/08 14:16:15 Done.
18 // enforces that the SafeSearch query parameters are set to active.
19 // Sets the query part of |new_url| with the new value of the parameters.
battre 2014/07/08 13:43:06 maybe: Sets *new_url to a copy of the request url
Marc Treib 2014/07/08 14:16:15 Done.
20 void ForceGoogleSafeSearch(const net::URLRequest* request, GURL* new_url);
21
22 // If |request| is a request to YouTube, enforces YouTube's Safety Mode by
23 // adding/modifying YouTube's PrefCookie header.
24 void ForceYouTubeSafetyMode(const net::URLRequest* request,
25 net::HttpRequestHeaders* headers);
26
27 } // namespace safe_search_util
28
29 #endif // CHROME_BROWSER_NET_SAFE_SEARCH_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698