Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: net/url_request/url_request_test_util.h

Issue 6749044: Remove async functionality from net::CookiePolicy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_test_util.h
diff --git a/net/url_request/url_request_test_util.h b/net/url_request/url_request_test_util.h
index 789c82aa61b1ee348a6348a2e9e93c13c22c6885..4d77d80eb6d2bdb22adfac4848f9af41d1cceedb 100644
--- a/net/url_request/url_request_test_util.h
+++ b/net/url_request/url_request_test_util.h
@@ -47,28 +47,20 @@ class TestCookiePolicy : public net::CookiePolicy {
enum Options {
NO_GET_COOKIES = 1 << 0,
NO_SET_COOKIE = 1 << 1,
- ASYNC = 1 << 2,
- FORCE_SESSION = 1 << 3,
+ FORCE_SESSION = 1 << 2,
};
explicit TestCookiePolicy(int options_bit_mask);
virtual ~TestCookiePolicy();
// net::CookiePolicy:
- virtual int CanGetCookies(const GURL& url, const GURL& first_party,
- net::CompletionCallback* callback);
- virtual int CanSetCookie(const GURL& url, const GURL& first_party,
- const std::string& cookie_line,
- net::CompletionCallback* callback);
+ virtual int CanGetCookies(const GURL& url, const GURL& first_party) const;
+ virtual int CanSetCookie(const GURL& url,
+ const GURL& first_party,
+ const std::string& cookie_line) const;
private:
- void DoGetCookiesPolicy(const GURL& url, const GURL& first_party);
- void DoSetCookiePolicy(const GURL& url, const GURL& first_party,
- const std::string& cookie_line);
-
- ScopedRunnableMethodFactory<TestCookiePolicy> method_factory_;
int options_;
- net::CompletionCallback* callback_;
};
//-----------------------------------------------------------------------------
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698