| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/feedback/anonymizer_tool.h" | 5 #include "components/feedback/anonymizer_tool.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 "+" \ | 90 "+" \ |
| 91 "\\." NCG(UNRESERVED "|" SUB_DELIMS \ | 91 "\\." NCG(UNRESERVED "|" SUB_DELIMS \ |
| 92 "|" \ | 92 "|" \ |
| 93 ":") "+" | 93 ":") "+" |
| 94 | 94 |
| 95 #define IP_LITERAL "\\[" NCG(IPV6ADDRESS "|" IPVFUTURE) "\\]" | 95 #define IP_LITERAL "\\[" NCG(IPV6ADDRESS "|" IPVFUTURE) "\\]" |
| 96 | 96 |
| 97 #define PORT DIGIT "*" | 97 #define PORT DIGIT "*" |
| 98 | 98 |
| 99 // This is a diversion of RFC 3987 | 99 // This is a diversion of RFC 3987 |
| 100 #define SCHEME NCG("http|https|ftp|chrome|chrome-extension|android") | 100 #define SCHEME NCG("http|https|ftp|chrome|chrome-extension|android|rtsp") |
| 101 | 101 |
| 102 #define IPRIVATE \ | 102 #define IPRIVATE \ |
| 103 "[" \ | 103 "[" \ |
| 104 "\\x{E000}-\\x{F8FF}" \ | 104 "\\x{E000}-\\x{F8FF}" \ |
| 105 "\\x{F0000}-\\x{FFFFD}" \ | 105 "\\x{F0000}-\\x{FFFFD}" \ |
| 106 "\\x{100000}-\\x{10FFFD}" \ | 106 "\\x{100000}-\\x{10FFFD}" \ |
| 107 "]" | 107 "]" |
| 108 | 108 |
| 109 #define UCSCHAR \ | 109 #define UCSCHAR \ |
| 110 "[" "\\x{A0}-\\x{D7FF}" "\\x{F900}-\\x{FDCF}" "\\x{FDF0}-\\x{FFEF}" \ | 110 "[" "\\x{A0}-\\x{D7FF}" "\\x{F900}-\\x{FDCF}" "\\x{FDF0}-\\x{FFEF}" \ |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 } | 363 } |
| 364 | 364 |
| 365 skipped.AppendToString(&result); | 365 skipped.AppendToString(&result); |
| 366 result += replacement_id; | 366 result += replacement_id; |
| 367 } | 367 } |
| 368 text.AppendToString(&result); | 368 text.AppendToString(&result); |
| 369 return result; | 369 return result; |
| 370 } | 370 } |
| 371 | 371 |
| 372 } // namespace feedback | 372 } // namespace feedback |
| OLD | NEW |