summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webkit_glue.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 07:23:43 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-05 07:23:43 +0000
commit4fcbbc7fd228382b4154ad8ad7b973741e68a058 (patch)
treea6478c7a305d36946cfbec255ea7f1d59ef73eee /webkit/glue/webkit_glue.h
parent703a31308be801fa9d7206bd0383d04f22eab2a1 (diff)
downloadchromium_src-4fcbbc7fd228382b4154ad8ad7b973741e68a058.zip
chromium_src-4fcbbc7fd228382b4154ad8ad7b973741e68a058.tar.gz
chromium_src-4fcbbc7fd228382b4154ad8ad7b973741e68a058.tar.bz2
Temporarily disable cookie codepaths that use WebKitClient to analyze
performance impact. TBR=dglazkov Review URL: http://codereview.chromium.org/39177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webkit_glue.h')
-rw-r--r--webkit/glue/webkit_glue.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h
index 003b0da..07aba30 100644
--- a/webkit/glue/webkit_glue.h
+++ b/webkit/glue/webkit_glue.h
@@ -150,6 +150,18 @@ void PrecacheUrl(const char16* url, int url_length);
// This function is called to add a line to the application's log file.
void AppendToLog(const char* filename, int line, const char* message);
+// Sets a cookie string for the given URL. The policy_url argument indicates
+// the URL of the topmost frame, which may be useful for determining whether or
+// not to allow this cookie setting. NOTE: the cookie string is a standard
+// cookie string of the form "name=value; option1=x; option2=y"
+void SetCookie(const GURL& url, const GURL& policy_url,
+ const std::string& cookie);
+
+// Returns all cookies in the form "a=1; b=2; c=3" for the given URL. NOTE:
+// this string should not include any options that may have been specified when
+// the cookie was set. Semicolons delimit individual cookies in this context.
+std::string GetCookies(const GURL& url, const GURL& policy_url);
+
// Gather usage statistics from the in-memory cache and inform our host, if
// applicable.
void NotifyCacheStats();