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

Unified Diff: net/base/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 | « content/browser/renderer_host/render_message_filter.cc ('k') | net/base/static_cookie_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cookie_policy.h
diff --git a/net/base/cookie_policy.h b/net/base/cookie_policy.h
index 43b689fe9d4227607a6a2420920993aefc4b147c..59ec7ef97f88b70323b303edb750703bfeea4e4b 100644
--- a/net/base/cookie_policy.h
+++ b/net/base/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.
@@ -28,20 +28,8 @@ class CookiePolicy {
// Returns:
// OK - if allowed to read cookies
// ERR_ACCESS_DENIED - if not allowed to read cookies
- // ERR_IO_PENDING - if the result will be determined asynchronously
- //
- // If the return value is ERR_IO_PENDING, then the given callback will be
- // notified once the final result is determined. Note: The callback must
- // remain valid until notified.
virtual int CanGetCookies(const GURL& url,
- const GURL& first_party_for_cookies,
- CompletionCallback* callback) = 0;
-
- // Determines if the URL's cookies may be written. Returns OK if allowed to
- // write a cookie for the given URL. Returns ERR_IO_PENDING to indicate that
- // the completion callback will be notified (asynchronously and on the
- // current thread) of the final result. Note: The completion callback must
- // remain valid until notified.
+ const GURL& first_party_for_cookies) const = 0;
// Determines if the URL's cookies may be written.
//
@@ -50,15 +38,9 @@ class CookiePolicy {
// OK_FOR_SESSION_ONLY - if allowed to write cookies, but forces them to
// be stored as session cookies
// ERR_ACCESS_DENIED - if not allowed to write cookies
- // ERR_IO_PENDING - if the result will be determined asynchronously
- //
- // If the return value is ERR_IO_PENDING, then the given callback will be
- // notified once the final result is determined. Note: The callback must
- // remain valid until notified.
virtual int CanSetCookie(const GURL& url,
const GURL& first_party_for_cookies,
- const std::string& cookie_line,
- CompletionCallback* callback) = 0;
+ const std::string& cookie_line) const = 0;
};
} // namespace net
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | net/base/static_cookie_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698