summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_store.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/cookie_store.h')
-rw-r--r--net/base/cookie_store.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/net/base/cookie_store.h b/net/base/cookie_store.h
index 2360c96..3976169 100644
--- a/net/base/cookie_store.h
+++ b/net/base/cookie_store.h
@@ -50,30 +50,22 @@ class CookieStore : public base::RefCountedThreadSafe<CookieStore> {
// Helpers to make the above interface simpler for some cases.
// Sets a cookie for the given URL using default options.
- bool SetCookie(const GURL& url, const std::string& cookie_line) {
- return SetCookieWithOptions(url, cookie_line, CookieOptions());
- }
+ bool SetCookie(const GURL& url, const std::string& cookie_line);
// Gets cookies for the given URL using default options.
- std::string GetCookies(const GURL& url) {
- return GetCookiesWithOptions(url, CookieOptions());
- }
+ std::string GetCookies(const GURL& url);
// Sets a vector of response cookie values for the same URL.
void SetCookiesWithOptions(const GURL& url,
const std::vector<std::string>& cookie_lines,
- const CookieOptions& options) {
- for (size_t i = 0; i < cookie_lines.size(); ++i)
- SetCookieWithOptions(url, cookie_lines[i], options);
- }
+ const CookieOptions& options);
void SetCookies(const GURL& url,
- const std::vector<std::string>& cookie_lines) {
- SetCookiesWithOptions(url, cookie_lines, CookieOptions());
- }
+ const std::vector<std::string>& cookie_lines);
protected:
friend class base::RefCountedThreadSafe<CookieStore>;
- virtual ~CookieStore() {}
+ CookieStore();
+ virtual ~CookieStore();
};
} // namespace net