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 |
11 // static | 11 // static |
12 jboolean HasDataUseTrackingStarted(JNIEnv* env, | 12 jboolean CheckDataUseTrackingStarted(JNIEnv* env, |
13 const JavaParamRef<jclass>& clazz, | 13 const JavaParamRef<jclass>& clazz, |
14 jint tab_id, | 14 jint tab_id, |
15 const JavaParamRef<jobject>& jprofile) { | 15 const JavaParamRef<jobject>& jprofile) { |
16 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and | 16 // TODO(megjablon): Get the DataUseTabUIManager which is a keyed service and |
17 // ask it if data use tracking has started. | 17 // ask it if data use tracking has started. |
18 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); | 18 // Profile* profile = ProfileAndroid::FromProfileAndroid(jprofile); |
19 return false; | 19 return false; |
20 } | 20 } |
21 | 21 |
22 // static | 22 // static |
23 jboolean HasDataUseTrackingEnded(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 bool RegisterDataUseTabUIManager(JNIEnv* env) { | 33 bool RegisterDataUseTabUIManager(JNIEnv* env) { |
34 return RegisterNativesImpl(env); | 34 return RegisterNativesImpl(env); |
35 } | 35 } |
OLD | NEW |