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 "chrome/browser/android/tab_android.h" | 5 #include "chrome/browser/android/tab_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" | 11 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" |
12 #include "chrome/browser/browser_about_handler.h" | 12 #include "chrome/browser/browser_about_handler.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
15 #include "chrome/browser/google/google_url_tracker.h" | |
16 #include "chrome/browser/google/google_url_tracker_factory.h" | 15 #include "chrome/browser/google/google_url_tracker_factory.h" |
17 #include "chrome/browser/google/google_util.h" | 16 #include "chrome/browser/google/google_util.h" |
18 #include "chrome/browser/infobars/infobar_service.h" | 17 #include "chrome/browser/infobars/infobar_service.h" |
19 #include "chrome/browser/prerender/prerender_contents.h" | 18 #include "chrome/browser/prerender/prerender_contents.h" |
20 #include "chrome/browser/prerender/prerender_manager.h" | 19 #include "chrome/browser/prerender/prerender_manager.h" |
21 #include "chrome/browser/prerender/prerender_manager_factory.h" | 20 #include "chrome/browser/prerender/prerender_manager_factory.h" |
22 #include "chrome/browser/printing/print_view_manager_basic.h" | 21 #include "chrome/browser/printing/print_view_manager_basic.h" |
23 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/profiles/profile_android.h" | 23 #include "chrome/browser/profiles/profile_android.h" |
25 #include "chrome/browser/search/search.h" | 24 #include "chrome/browser/search/search.h" |
26 #include "chrome/browser/sessions/session_tab_helper.h" | 25 #include "chrome/browser/sessions/session_tab_helper.h" |
27 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h" | 26 #include "chrome/browser/sync/glue/synced_tab_delegate_android.h" |
28 #include "chrome/browser/ui/android/content_settings/popup_blocked_infobar_deleg
ate.h" | 27 #include "chrome/browser/ui/android/content_settings/popup_blocked_infobar_deleg
ate.h" |
29 #include "chrome/browser/ui/android/context_menu_helper.h" | 28 #include "chrome/browser/ui/android/context_menu_helper.h" |
30 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" | 29 #include "chrome/browser/ui/android/infobars/infobar_container_android.h" |
31 #include "chrome/browser/ui/android/tab_model/tab_model.h" | 30 #include "chrome/browser/ui/android/tab_model/tab_model.h" |
32 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" | 31 #include "chrome/browser/ui/android/tab_model/tab_model_list.h" |
33 #include "chrome/browser/ui/android/window_android_helper.h" | 32 #include "chrome/browser/ui/android/window_android_helper.h" |
34 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 33 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
35 #include "chrome/browser/ui/search/search_tab_helper.h" | 34 #include "chrome/browser/ui/search/search_tab_helper.h" |
36 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 35 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
37 #include "chrome/browser/ui/tab_helpers.h" | 36 #include "chrome/browser/ui/tab_helpers.h" |
38 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" | 37 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h" |
39 #include "chrome/common/net/url_fixer_upper.h" | 38 #include "chrome/common/net/url_fixer_upper.h" |
40 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "components/google/core/browser/google_url_tracker.h" |
41 #include "components/infobars/core/infobar_container.h" | 41 #include "components/infobars/core/infobar_container.h" |
42 #include "content/public/browser/android/content_view_core.h" | 42 #include "content/public/browser/android/content_view_core.h" |
43 #include "content/public/browser/navigation_entry.h" | 43 #include "content/public/browser/navigation_entry.h" |
44 #include "content/public/browser/notification_service.h" | 44 #include "content/public/browser/notification_service.h" |
45 #include "content/public/browser/user_metrics.h" | 45 #include "content/public/browser/user_metrics.h" |
46 #include "content/public/browser/web_contents.h" | 46 #include "content/public/browser/web_contents.h" |
47 #include "jni/Tab_jni.h" | 47 #include "jni/Tab_jni.h" |
48 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 48 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
49 | 49 |
50 TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) { | 50 TabAndroid* TabAndroid::FromWebContents(content::WebContents* web_contents) { |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 511 |
512 static void Init(JNIEnv* env, jobject obj) { | 512 static void Init(JNIEnv* env, jobject obj) { |
513 TRACE_EVENT0("native", "TabAndroid::Init"); | 513 TRACE_EVENT0("native", "TabAndroid::Init"); |
514 // This will automatically bind to the Java object and pass ownership there. | 514 // This will automatically bind to the Java object and pass ownership there. |
515 new TabAndroid(env, obj); | 515 new TabAndroid(env, obj); |
516 } | 516 } |
517 | 517 |
518 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { | 518 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { |
519 return RegisterNativesImpl(env); | 519 return RegisterNativesImpl(env); |
520 } | 520 } |
OLD | NEW |