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

Unified Diff: net/base/static_cookie_policy.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/base/cookie_policy.h ('k') | net/base/static_cookie_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/static_cookie_policy.h
diff --git a/net/base/static_cookie_policy.h b/net/base/static_cookie_policy.h
index 815aadcb866059454a06bc42153f720631d6aa2e..77a62e8852b18ed1e4a62bfde983d432fbf1add9 100644
--- a/net/base/static_cookie_policy.h
+++ b/net/base/static_cookie_policy.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -54,15 +54,13 @@ class StaticCookiePolicy : public CookiePolicy {
// Consults the user's third-party cookie blocking preferences to determine
// whether the URL's cookies can be read.
virtual int CanGetCookies(const GURL& url,
- const GURL& first_party_for_cookies,
- CompletionCallback* callback);
+ const GURL& first_party_for_cookies) const;
// Consults the user's third-party cookie blocking preferences to determine
// whether the URL's cookies can be set.
virtual int CanSetCookie(const GURL& url,
const GURL& first_party_for_cookies,
- const std::string& cookie_line,
- CompletionCallback* callback);
+ const std::string& cookie_line) const;
private:
Type type_;
« no previous file with comments | « net/base/cookie_policy.h ('k') | net/base/static_cookie_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698