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