OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/native/cookie_manager.h" | 5 #include "android_webview/native/cookie_manager.h" |
6 | 6 |
7 #include "android_webview/browser/aw_cookie_access_policy.h" | 7 #include "android_webview/browser/aw_cookie_access_policy.h" |
8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" | 8 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" |
9 #include "android_webview/native/aw_browser_dependency_factory.h" | 9 #include "android_webview/native/aw_browser_dependency_factory.h" |
10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/synchronization/waitable_event.h" | 16 #include "base/synchronization/waitable_event.h" |
17 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
18 #include "content/public/browser/browser_context.h" | 18 #include "content/public/browser/browser_context.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/common/url_constants.h" | 20 #include "content/public/common/url_constants.h" |
21 #include "jni/AwCookieManager_jni.h" | 21 #include "jni/AwCookieManager_jni.h" |
22 #include "net/cookies/cookie_monster.h" | 22 #include "net/cookies/cookie_monster.h" |
23 #include "net/cookies/cookie_options.h" | 23 #include "net/cookies/cookie_options.h" |
24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
25 | 25 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 | 353 |
354 void SetCookieMonsterOnNetworkStackInit(net::CookieMonster* cookie_monster) { | 354 void SetCookieMonsterOnNetworkStackInit(net::CookieMonster* cookie_monster) { |
355 CookieManager::GetInstance()->SetCookieMonster(cookie_monster); | 355 CookieManager::GetInstance()->SetCookieMonster(cookie_monster); |
356 } | 356 } |
357 | 357 |
358 bool RegisterCookieManager(JNIEnv* env) { | 358 bool RegisterCookieManager(JNIEnv* env) { |
359 return RegisterNativesImpl(env); | 359 return RegisterNativesImpl(env); |
360 } | 360 } |
361 | 361 |
362 } // android_webview namespace | 362 } // android_webview namespace |
OLD | NEW |