1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
6 #define ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_
8 #include "chrome/browser/chrome_content_browser_client.h"
10 namespace android_webview
{
12 // TODO(boliu): Remove chrome/ dependency and inherit from
13 // content::ContentBrowserClient directly.
14 class AwContentBrowserClient
: public chrome::ChromeContentBrowserClient
{
16 AwContentBrowserClient();
17 virtual ~AwContentBrowserClient();
19 // Overriden methods from ContentBrowserClient.
20 virtual void ResourceDispatcherHostCreated() OVERRIDE
;
21 virtual bool AllowGetCookie(const GURL
& url
,
22 const GURL
& first_party
,
23 const net::CookieList
& cookie_list
,
24 content::ResourceContext
* context
,
25 int render_process_id
,
26 int render_view_id
) OVERRIDE
;
27 virtual bool AllowSetCookie(const GURL
& url
,
28 const GURL
& first_party
,
29 const std::string
& cookie_line
,
30 content::ResourceContext
* context
,
31 int render_process_id
,
33 net::CookieOptions
* options
) OVERRIDE
;
36 } // namespace android_webview
38 #endif // ANDROID_WEBVIEW_LIB_AW_CONTENT_BROWSER_CLIENT_H_