OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/web_contents/web_contents_android.h" | 5 #include "content/browser/web_contents/web_contents_android.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/memory/ptr_util.h" |
17 #include "content/browser/accessibility/browser_accessibility_android.h" | 18 #include "content/browser/accessibility/browser_accessibility_android.h" |
18 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 19 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
19 #include "content/browser/android/content_view_core_impl.h" | 20 #include "content/browser/android/content_view_core_impl.h" |
20 #include "content/browser/android/interstitial_page_delegate_android.h" | 21 #include "content/browser/android/interstitial_page_delegate_android.h" |
21 #include "content/browser/frame_host/interstitial_page_impl.h" | 22 #include "content/browser/frame_host/interstitial_page_impl.h" |
22 #include "content/browser/media/android/browser_media_player_manager.h" | 23 #include "content/browser/media/android/browser_media_player_manager.h" |
23 #include "content/browser/media/android/media_web_contents_observer_android.h" | 24 #include "content/browser/media/android/media_web_contents_observer_android.h" |
24 #include "content/browser/renderer_host/render_view_host_impl.h" | 25 #include "content/browser/renderer_host/render_view_host_impl.h" |
25 #include "content/browser/web_contents/web_contents_impl.h" | 26 #include "content/browser/web_contents/web_contents_impl.h" |
26 #include "content/browser/web_contents/web_contents_view_android.h" | 27 #include "content/browser/web_contents/web_contents_view_android.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); | 734 env, obj, callback, id, http_status_code, jurl, jbitmaps, jsizes); |
734 } | 735 } |
735 | 736 |
736 void WebContentsAndroid::SetMediaSession( | 737 void WebContentsAndroid::SetMediaSession( |
737 const ScopedJavaLocalRef<jobject>& j_media_session) { | 738 const ScopedJavaLocalRef<jobject>& j_media_session) { |
738 JNIEnv* env = base::android::AttachCurrentThread(); | 739 JNIEnv* env = base::android::AttachCurrentThread(); |
739 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); | 740 Java_WebContentsImpl_setMediaSession(env, obj_, j_media_session); |
740 } | 741 } |
741 | 742 |
742 } // namespace content | 743 } // namespace content |
OLD | NEW |