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

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, 9 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
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 6dcd39dc692c4285c78be6737a3e411b7e69798d..a0179c677296c7367784e2a944828a00a98c9b5d 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_;
};
//-----------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698