[Chromoting] Break up JS event handler registration into related groups.
[chromium-blink-merge.git] / android_webview / browser / net / init_native_callback.h
blob5f48e4cb835cebd4473a656767d35d7175410330
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"
10 #include "net/url_request/url_request_job_factory.h"
12 namespace net {
13 class CookieStore;
14 } // namespace net
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::URLRequestJobFactory::ProtocolHandler>
25 CreateAndroidAssetFileProtocolHandler();
27 // Called lazily when the job factory is being constructed.
28 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
29 CreateAndroidContentProtocolHandler();
31 } // namespace android_webview
33 #endif // ANDROID_WEBVIEW_BROWSER_NET_INIT_NATIVE_CALLBACK_H_