OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "android_webview/browser/net/init_native_callback.h" | 5 #include "android_webview/browser/net/init_native_callback.h" |
6 | 6 |
7 #include "android_webview/browser/net/aw_url_request_job_factory.h" | 7 #include "android_webview/browser/net/aw_url_request_job_factory.h" |
8 #include "android_webview/native/android_protocol_handler.h" | 8 #include "android_webview/native/android_protocol_handler.h" |
9 #include "android_webview/native/cookie_manager.h" | 9 #include "android_webview/native/cookie_manager.h" |
| 10 #include "base/logging.h" |
10 #include "net/url_request/url_request_job_factory.h" | 11 #include "net/url_request/url_request_job_factory.h" |
11 | 12 |
12 namespace android_webview { | 13 namespace android_webview { |
13 class AwURLRequestJobFactory; | 14 class AwURLRequestJobFactory; |
14 | 15 |
15 scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactoryAndCookieMonster( | 16 void DidCreateCookieMonster(net::CookieMonster* cookie_monster) { |
16 net::URLRequestContext* context, | 17 DCHECK(cookie_monster); |
| 18 SetCookieMonsterOnNetworkStackInit(cookie_monster); |
| 19 } |
| 20 |
| 21 scoped_ptr<net::URLRequestJobFactory> CreateAndroidJobFactory( |
17 scoped_ptr<AwURLRequestJobFactory> job_factory) { | 22 scoped_ptr<AwURLRequestJobFactory> job_factory) { |
18 SetCookieMonsterOnNetworkStackInit(context); | |
19 return CreateAndroidRequestJobFactory(job_factory.Pass()); | 23 return CreateAndroidRequestJobFactory(job_factory.Pass()); |
20 } | 24 } |
21 | 25 |
22 } // namespace android_webview | 26 } // namespace android_webview |
OLD | NEW |