| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 #include "chrome/common/render_messages.h" | 53 #include "chrome/common/render_messages.h" |
| 54 #include "chrome/common/url_constants.h" | 54 #include "chrome/common/url_constants.h" |
| 55 #include "components/bookmarks/browser/bookmark_model.h" | 55 #include "components/bookmarks/browser/bookmark_model.h" |
| 56 #include "components/bookmarks/browser/bookmark_node.h" | 56 #include "components/bookmarks/browser/bookmark_node.h" |
| 57 #include "components/bookmarks/browser/bookmark_utils.h" | 57 #include "components/bookmarks/browser/bookmark_utils.h" |
| 58 #include "components/bookmarks/managed/managed_bookmark_service.h" | 58 #include "components/bookmarks/managed/managed_bookmark_service.h" |
| 59 #include "components/dom_distiller/core/url_utils.h" | 59 #include "components/dom_distiller/core/url_utils.h" |
| 60 #include "components/favicon/content/content_favicon_driver.h" | 60 #include "components/favicon/content/content_favicon_driver.h" |
| 61 #include "components/navigation_interception/intercept_navigation_delegate.h" | 61 #include "components/navigation_interception/intercept_navigation_delegate.h" |
| 62 #include "components/navigation_interception/navigation_params.h" | 62 #include "components/navigation_interception/navigation_params.h" |
| 63 #include "components/offline_pages/offline_page_feature.h" | 63 #include "components/offline_pages/core/offline_page_feature.h" |
| 64 #include "components/offline_pages/offline_page_item.h" | 64 #include "components/offline_pages/core/offline_page_item.h" |
| 65 #include "components/offline_pages/offline_page_model.h" | 65 #include "components/offline_pages/core/offline_page_model.h" |
| 66 #include "components/sessions/content/content_live_tab.h" | 66 #include "components/sessions/content/content_live_tab.h" |
| 67 #include "components/sessions/core/tab_restore_service.h" | 67 #include "components/sessions/core/tab_restore_service.h" |
| 68 #include "components/url_formatter/url_fixer.h" | 68 #include "components/url_formatter/url_fixer.h" |
| 69 #include "content/public/browser/android/compositor.h" | 69 #include "content/public/browser/android/compositor.h" |
| 70 #include "content/public/browser/browser_thread.h" | 70 #include "content/public/browser/browser_thread.h" |
| 71 #include "content/public/browser/interstitial_page.h" | 71 #include "content/public/browser/interstitial_page.h" |
| 72 #include "content/public/browser/navigation_entry.h" | 72 #include "content/public/browser/navigation_entry.h" |
| 73 #include "content/public/browser/notification_service.h" | 73 #include "content/public/browser/notification_service.h" |
| 74 #include "content/public/browser/render_frame_host.h" | 74 #include "content/public/browser/render_frame_host.h" |
| 75 #include "content/public/browser/render_process_host.h" | 75 #include "content/public/browser/render_process_host.h" |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 803 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 804 TRACE_EVENT0("native", "TabAndroid::Init"); | 804 TRACE_EVENT0("native", "TabAndroid::Init"); |
| 805 // This will automatically bind to the Java object and pass ownership there. | 805 // This will automatically bind to the Java object and pass ownership there. |
| 806 new TabAndroid(env, obj); | 806 new TabAndroid(env, obj); |
| 807 } | 807 } |
| 808 | 808 |
| 809 // static | 809 // static |
| 810 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { | 810 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { |
| 811 return RegisterNativesImpl(env); | 811 return RegisterNativesImpl(env); |
| 812 } | 812 } |
| OLD | NEW |