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_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
6 #define ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
13 class URLRequestInterceptor
;
16 namespace android_webview
{
17 class AwBrowserContext
;
19 // Called when the CookieMonster needs to be created.
20 scoped_refptr
<net::CookieStore
> CreateCookieStore(
21 AwBrowserContext
* browser_context
);
23 // Called lazily when the job factory is being constructed.
24 scoped_ptr
<net::URLRequestInterceptor
>
25 CreateAndroidAssetFileRequestInterceptor();
27 // Called lazily when the job factory is being constructed.
28 scoped_ptr
<net::URLRequestInterceptor
>
29 CreateAndroidContentRequestInterceptor();
31 } // namespace android_webview
33 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_