| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/net/safe_search_util.h" | 5 #include "chrome/browser/net/safe_search_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/strings/string_piece.h" | 14 #include "base/strings/string_piece.h" |
| 15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
| 17 #include "base/strings/stringprintf.h" | |
| 18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 19 #include "components/google/core/browser/google_util.h" | 18 #include "components/google/core/browser/google_util.h" |
| 20 #include "net/cookies/cookie_util.h" | 19 #include "net/cookies/cookie_util.h" |
| 21 #include "net/http/http_request_headers.h" | 20 #include "net/http/http_request_headers.h" |
| 22 #include "net/url_request/url_request.h" | 21 #include "net/url_request/url_request.h" |
| 23 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 24 | 23 |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 int g_force_google_safe_search_count_for_test = 0; | 26 int g_force_google_safe_search_count_for_test = 0; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 127 |
| 129 void ClearForceGoogleSafeSearchCountForTesting() { | 128 void ClearForceGoogleSafeSearchCountForTesting() { |
| 130 g_force_google_safe_search_count_for_test = 0; | 129 g_force_google_safe_search_count_for_test = 0; |
| 131 } | 130 } |
| 132 | 131 |
| 133 void ClearForceYouTubeRestrictCountForTesting() { | 132 void ClearForceYouTubeRestrictCountForTesting() { |
| 134 g_force_youtube_restrict_count_for_test = 0; | 133 g_force_youtube_restrict_count_for_test = 0; |
| 135 } | 134 } |
| 136 | 135 |
| 137 } // namespace safe_search_util | 136 } // namespace safe_search_util |
| OLD | NEW |