summaryrefslogtreecommitdiffstats
path: root/android_webview/native/net_init_native_callback.cc
blob: d291dfd0079d81a662a591efb85cd31c2a5ecdec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "android_webview/browser/net/init_native_callback.h"

#include "android_webview/browser/net/aw_url_request_job_factory.h"
#include "android_webview/native/android_protocol_handler.h"
#include "android_webview/native/cookie_manager.h"
#include "base/logging.h"

namespace android_webview {
class AwURLRequestJobFactory;

void DidCreateCookieMonster(net::CookieMonster* cookie_monster) {
  DCHECK(cookie_monster);
  SetCookieMonsterOnNetworkStackInit(cookie_monster);
}

scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
CreateAndroidAssetFileProtocolHandler() {
  return CreateAssetFileProtocolHandler();
}

scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
CreateAndroidContentProtocolHandler() {
  return CreateContentSchemeProtocolHandler();
}

}  // namespace android_webview