| 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" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 14 #include "blimp/client/public/blimp_client_context.h" | 14 #include "blimp/client/public/blimp_client_context.h" |
| 15 #include "blimp/client/public/contents/blimp_contents.h" | 15 #include "blimp/client/public/contents/blimp_contents.h" |
| 16 #include "blimp/client/public/contents/blimp_navigation_controller.h" | 16 #include "blimp/client/public/contents/blimp_navigation_controller.h" |
| 17 #include "cc/layers/layer.h" | 17 #include "cc/layers/layer.h" |
| 18 #include "chrome/browser/android/blimp/blimp_client_context_factory.h" | 18 #include "chrome/browser/android/blimp/blimp_client_context_factory.h" |
| 19 #include "chrome/browser/android/compositor/tab_content_manager.h" | 19 #include "chrome/browser/android/compositor/tab_content_manager.h" |
| 20 #include "chrome/browser/android/metrics/uma_utils.h" | 20 #include "chrome/browser/android/metrics/uma_utils.h" |
| 21 #include "chrome/browser/android/offline_pages/offline_page_bridge.h" | 21 #include "chrome/browser/android/offline_pages/offline_page_bridge.h" |
| 22 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" | 22 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 915 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { | 915 static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { |
| 916 TRACE_EVENT0("native", "TabAndroid::Init"); | 916 TRACE_EVENT0("native", "TabAndroid::Init"); |
| 917 // This will automatically bind to the Java object and pass ownership there. | 917 // This will automatically bind to the Java object and pass ownership there. |
| 918 new TabAndroid(env, obj); | 918 new TabAndroid(env, obj); |
| 919 } | 919 } |
| 920 | 920 |
| 921 // static | 921 // static |
| 922 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { | 922 bool TabAndroid::RegisterTabAndroid(JNIEnv* env) { |
| 923 return RegisterNativesImpl(env); | 923 return RegisterNativesImpl(env); |
| 924 } | 924 } |
| OLD | NEW |