| 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;
|
|
|