diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 13:57:05 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 13:57:05 +0000 |
commit | ca97f30c1c6e282f62880c6b1d5e165b9ece716f (patch) | |
tree | 75f7f5abe47a49e5c603eacbe7abf993d232aad2 /chrome/common/net/url_fetcher.h | |
parent | c33ec4af81ba1d13ec18eb7b0e542c05a2c9d4b0 (diff) | |
download | chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.zip chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.tar.gz chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.tar.bz2 |
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
Diffstat (limited to 'chrome/common/net/url_fetcher.h')
-rw-r--r-- | chrome/common/net/url_fetcher.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/net/url_fetcher.h b/chrome/common/net/url_fetcher.h index dfa29a9..19edbb9 100644 --- a/chrome/common/net/url_fetcher.h +++ b/chrome/common/net/url_fetcher.h @@ -139,6 +139,10 @@ class URLFetcher { // Returns the current load flags. int load_flags() const; + // The referrer URL for the request. Must be called before the request is + // started. + void set_referrer(const std::string& referrer); + // Set extra headers on the request. Must be called before the request // is started. void set_extra_request_headers(const std::string& extra_request_headers); |