Move most of TestNaClBrowserDelegate to another file.
[chromium-blink-merge.git] / android_webview / native / net_init_native_callback.cc
blobd291dfd0079d81a662a591efb85cd31c2a5ecdec
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 #include "android_webview/browser/net/init_native_callback.h"
7 #include "android_webview/browser/net/aw_url_request_job_factory.h"
8 #include "android_webview/native/android_protocol_handler.h"
9 #include "android_webview/native/cookie_manager.h"
10 #include "base/logging.h"
12 namespace android_webview {
13 class AwURLRequestJobFactory;
15 void DidCreateCookieMonster(net::CookieMonster* cookie_monster) {
16 DCHECK(cookie_monster);
17 SetCookieMonsterOnNetworkStackInit(cookie_monster);
20 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
21 CreateAndroidAssetFileProtocolHandler() {
22 return CreateAssetFileProtocolHandler();
25 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
26 CreateAndroidContentProtocolHandler() {
27 return CreateContentSchemeProtocolHandler();
30 } // namespace android_webview