summaryrefslogtreecommitdiffstats
path: root/printing/backend/print_backend_consts.cc
diff options
context:
space:
mode:
authorbauerb <bauerb@chromium.org>2015-07-13 04:05:44 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-13 11:06:17 +0000
commitb1704d0c90a6eb1e4d5eb1e83976e5964ee378b7 (patch)
tree3fc9c84049911645710aa2a9bb5f06e38ed84b5d /printing/backend/print_backend_consts.cc
parentf8633deb9da835a863a5f77bdc1c52ee701d8ae2 (diff)
downloadchromium_src-b1704d0c90a6eb1e4d5eb1e83976e5964ee378b7.zip
chromium_src-b1704d0c90a6eb1e4d5eb1e83976e5964ee378b7.tar.gz
chromium_src-b1704d0c90a6eb1e4d5eb1e83976e5964ee378b7.tar.bz2
Add a JSON sanitizer.
On Android, the JSON sanitizer parses the untrusted JSON in Java and checks it for wellformedness before serializing it again. On desktop platforms it uses SafeJsonParser to parse the JSON out of process, then serializes it again. Also, on Android (where JsonSanitizer is not implemented in terms of the SafeJsonParser) the SafeJsonParser now uses the JsonSanitizer to sanitize its input before parsing it directly in process, instead of starting a new process, which is very costly on Android. BUG=501333 Review URL: https://codereview.chromium.org/1203083002 Cr-Commit-Position: refs/heads/master@{#338495}
Diffstat (limited to 'printing/backend/print_backend_consts.cc')
0 files changed, 0 insertions, 0 deletions