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

Unified Diff: net/base/static_cookie_policy.cc

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/static_cookie_policy.h ('k') | net/base/static_cookie_policy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/static_cookie_policy.cc
diff --git a/net/base/static_cookie_policy.cc b/net/base/static_cookie_policy.cc
index 19e0a16028255aff66c90c980dd4bdb5554b52ad..9e0dce743188cfa3f6715699d98b94e9c05d57e4 100644
--- a/net/base/static_cookie_policy.cc
+++ b/net/base/static_cookie_policy.cc
@@ -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.
@@ -11,9 +11,9 @@
namespace net {
-int StaticCookiePolicy::CanGetCookies(const GURL& url,
- const GURL& first_party_for_cookies,
- CompletionCallback* callback) {
+int StaticCookiePolicy::CanGetCookies(
+ const GURL& url,
+ const GURL& first_party_for_cookies) const {
switch (type_) {
case StaticCookiePolicy::ALLOW_ALL_COOKIES:
case StaticCookiePolicy::BLOCK_SETTING_THIRD_PARTY_COOKIES:
@@ -33,8 +33,7 @@ int StaticCookiePolicy::CanGetCookies(const GURL& url,
int StaticCookiePolicy::CanSetCookie(const GURL& url,
const GURL& first_party_for_cookies,
- const std::string& cookie_line,
- CompletionCallback* callback) {
+ const std::string& cookie_line) const {
switch (type_) {
case StaticCookiePolicy::ALLOW_ALL_COOKIES:
return OK;
« no previous file with comments | « net/base/static_cookie_policy.h ('k') | net/base/static_cookie_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698