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

Side by Side Diff: components/feedback/anonymizer_tool.cc

Issue 1665163002: Added rtsp:// to URL pattern of AnonymizerTool (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | components/feedback/anonymizer_tool_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | components/feedback/anonymizer_tool_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698