Reduce code duplication across sendBeacon() overloads.

Rework the construction of the Beacon requests across the various supported
payload types, avoiding duplication of type-independent boilerplate code.

On linux64-release, reduces code size from 30k to 15k.

R=mkwst
BUG=

Review URL: https://codereview.chromium.org/864163004

git-svn-id: svn://svn.chromium.org/blink/trunk@189790 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: fae8f4022c52d66a423f837a5743995a2bdf19ad
  1. third_party/