OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/data_usage/data_use_tab_ui_manager_android.h" | 5 #include "chrome/browser/android/data_usage/data_use_tab_ui_manager_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "chrome/browser/profiles/profile_android.h" | 8 #include "chrome/browser/profiles/profile_android.h" |
9 #include "jni/DataUseTabUIManager_jni.h" | 9 #include "jni/DataUseTabUIManager_jni.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 jboolean CheckDataUseTrackingEnded(JNIEnv* env, | 23 jboolean CheckDataUseTrackingEnded(JNIEnv* env, |
24 const JavaParamRef<jclass>& clazz, | 24 const JavaParamRef<jclass>& clazz, |
25 jint tab_id, | 25 jint tab_id, |
26 const JavaParamRef<jobject>& jprofile) { | 26 const JavaParamRef<jobject>& jprofile) { |
27 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and | 27 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and |
28 // ask it if data use tracking has ended. | 28 // ask it if data use tracking has ended. |
29 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); | 29 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); |
30 return false; | 30 return false; |
31 } | 31 } |
32 | 32 |
| 33 // static |
| 34 void OnCustomTabInitialNavigation(JNIEnv* env, |
| 35 const JavaParamRef<jclass>& clazz, |
| 36 jint tab_id, |
| 37 const JavaParamRef<jstring>& url, |
| 38 const JavaParamRef<jstring>& packageName, |
| 39 const JavaParamRef<jobject>& jprofile) { |
| 40 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and |
| 41 // tell it about the custom tab package. |
| 42 } |
| 43 |
33 bool RegisterDataUseTabUIManager(JNIEnv* env) { | 44 bool RegisterDataUseTabUIManager(JNIEnv* env) { |
34 return RegisterNativesImpl(env); | 45 return RegisterNativesImpl(env); |
35 } | 46 } |
OLD | NEW |