summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/glue/http_bridge.h
diff options
context:
space:
mode:
authorchron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 01:32:07 +0000
committerchron@chromium.org <chron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-22 01:32:07 +0000
commit5f9b8adb8c5911a62ded2737b58088dfd88bf65b (patch)
tree60e78c4b60741ff4b6366f68be2c27bff0411379 /chrome/browser/sync/glue/http_bridge.h
parent841c523f75dd0fae0d178b84b1b9f438354dab20 (diff)
downloadchromium_src-5f9b8adb8c5911a62ded2737b58088dfd88bf65b.zip
chromium_src-5f9b8adb8c5911a62ded2737b58088dfd88bf65b.tar.gz
chromium_src-5f9b8adb8c5911a62ded2737b58088dfd88bf65b.tar.bz2
Add support to glue and syncAPI for header setting. (second try)
Review URL: http://codereview.chromium.org/174269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/glue/http_bridge.h')
-rw-r--r--chrome/browser/sync/glue/http_bridge.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/sync/glue/http_bridge.h b/chrome/browser/sync/glue/http_bridge.h
index 184a040..bb2af84 100644
--- a/chrome/browser/sync/glue/http_bridge.h
+++ b/chrome/browser/sync/glue/http_bridge.h
@@ -62,6 +62,10 @@ class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>,
URLRequestContext::GetUserAgent(url) : user_agent_;
}
+ virtual bool AllowSendingCookies(const URLRequest* request) const {
+ return false; // Never send cookies.
+ }
+
private:
std::string user_agent_;
@@ -73,6 +77,7 @@ class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>,
// sync_api::HttpPostProvider implementation.
virtual void SetUserAgent(const char* user_agent);
+ virtual void SetExtraRequestHeaders(const char* headers);
virtual void SetURL(const char* url, int port);
virtual void SetPostPayload(const char* content_type, int content_length,
const char* content);
@@ -130,6 +135,7 @@ class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>,
// POST payload information.
std::string content_type_;
std::string request_content_;
+ std::string extra_headers_;
// Cached response data.
bool request_completed_;