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

Unified Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 5318002: Also register read cookies in the content settings delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 10 years, 1 month 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: chrome/browser/renderer_host/render_view_host_delegate.h
diff --git a/chrome/browser/renderer_host/render_view_host_delegate.h b/chrome/browser/renderer_host/render_view_host_delegate.h
index 9bde9cdf866017eb031263f548c04f6c3c4ea4a4..cab2ae8da1291d86ca6f0a428de71883f90ed916 100644
--- a/chrome/browser/renderer_host/render_view_host_delegate.h
+++ b/chrome/browser/renderer_host/render_view_host_delegate.h
@@ -71,6 +71,7 @@ class Message;
}
namespace net {
+class CookieMonster;
class CookieOptions;
}
@@ -390,6 +391,16 @@ class RenderViewHostDelegate {
virtual void OnContentBlocked(ContentSettingsType type,
const std::string& resource_identifier) = 0;
+ // Called when cookies for given URL where read either from within the
darin (slow to review) 2010/11/30 18:24:11 nit: where -> were
jochen (gone - plz use gerrit) 2010/12/03 16:02:32 Done.
+ // current page or while loading it. |blocked_by_policy| should be true, if
+ // reading cookies was blocked due to the user's content settings. In that
+ // case, this function should invoke OnContentBlocked.
+ virtual void OnCookiesRead(
+ const GURL& url,
+ net::CookieMonster* cookie_monster,
+ const net::CookieOptions& options,
+ bool blocked_by_policy) = 0;
+
// Called when a specific cookie in the current page was accessed.
// |blocked_by_policy| should be true, if the cookie was blocked due to the
// user's content settings. In that case, this function should invoke

Powered by Google App Engine
This is Rietveld 408576698