| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b67de1c6e207e01670d9d9c5cd8fe091ffdf1ffe
|
| --- /dev/null
|
| +++ b/chrome/browser/net/safe_search_util.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright (c) 2014 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_BROWSER_NET_SAFE_SEARCH_UTIL_H_
|
| +#define CHROME_BROWSER_NET_SAFE_SEARCH_UTIL_H_
|
| +
|
| +class GURL;
|
| +
|
| +namespace net {
|
| +class HttpRequestHeaders;
|
| +class URLRequest;
|
| +}
|
| +
|
| +namespace safe_search_util {
|
| +
|
| +// If |request| is a request to Google Web Search the function
|
| +// enforces that the SafeSearch query parameters are set to active.
|
| +// Sets the query part of |new_url| with the new value of the parameters.
|
| +void ForceGoogleSafeSearch(const net::URLRequest* request, GURL* new_url);
|
| +
|
| +// If |request| is a request to Youtube, enforces Youtube's Safety Mode by
|
| +// adding/modifying Youtube's PrefCookie header.
|
| +void ForceYoutubeSafetyMode(const net::URLRequest* request,
|
| + net::HttpRequestHeaders* headers);
|
| +
|
| +} // namespace safe_search_util
|
| +
|
| +#endif // CHROME_BROWSER_NET_SAFE_SEARCH_UTIL_H_
|
|
|