If user had consented for metrics reporting, send speech input request origin to the server.
This is the chromium side of the webkit patch https://bugs.webkit.org/show_bug.cgi?id=52718.

Suggested reviewer split:
wtc@ - the 2 url_fetcher.* files
hans@ - rest of the files

I needed to add a URLFetcher::set_referrer() method to send the origin url in the Referer header.

Also I had to create a new IPC params struct for startRecognition since the
number of parameters exceed what is provided by the macros. And in the process I also moved
the speech input IPC messages to their own source files.

BUG=none
TEST=No change in functionality except additional debug info sent to server.

Review URL: http://codereview.chromium.org/6308009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71949 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: ca97f30c1c6e282f62880c6b1d5e165b9ece716f
1 file changed
tree: 6d2b8b9aea7a20a639ea1891b3f190c0ceecf006
  1. base/
  2. build/
  3. ipc/
  4. testing/