| Index: content/browser/content_browser_client.h
|
| ===================================================================
|
| --- content/browser/content_browser_client.h (revision 84789)
|
| +++ content/browser/content_browser_client.h (working copy)
|
| @@ -18,6 +18,11 @@
|
| class TabContents;
|
| class WorkerProcessHost;
|
|
|
| +namespace net {
|
| +class CookieList;
|
| +class CookieOptions;
|
| +}
|
| +
|
| namespace content {
|
|
|
| class ResourceContext;
|
| @@ -65,8 +70,27 @@
|
| // Allow the embedder to control if an AppCache can be used for the given url.
|
| // This is called on the IO thread.
|
| virtual bool AllowAppCache(const GURL& manifest_url,
|
| - const content::ResourceContext* context);
|
| + const content::ResourceContext& context);
|
|
|
| + // Allow the embedder to control if the given cookie can be read.
|
| + // This is called on the IO thread.
|
| + virtual bool AllowGetCookie(const GURL& url,
|
| + const GURL& first_party,
|
| + const net::CookieList& cookie_list,
|
| + const content::ResourceContext& context,
|
| + int render_process_id,
|
| + int render_view_id);
|
| +
|
| + // Allow the embedder to control if the given cookie can be set.
|
| + // This is called on the IO thread.
|
| + virtual bool AllowSetCookie(const GURL& url,
|
| + const GURL& first_party,
|
| + const std::string& cookie_line,
|
| + const content::ResourceContext& context,
|
| + int render_process_id,
|
| + int render_view_id,
|
| + net::CookieOptions* options);
|
| +
|
| #if defined(OS_LINUX)
|
| // Can return an optional fd for crash handling, otherwise returns -1.
|
| virtual int GetCrashSignalFD(const std::string& process_type);
|
|
|