OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/invalidation/invalidation_service_factory_android.h" | 5 #include "chrome/browser/invalidation/invalidation_service_factory_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" | 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/profiles/profile_android.h" | 10 #include "chrome/browser/profiles/profile_android.h" |
11 #include "components/invalidation/invalidation_service_android.h" | 11 #include "components/invalidation/impl/invalidation_service_android.h" |
12 #include "components/invalidation/profile_invalidation_provider.h" | 12 #include "components/invalidation/impl/profile_invalidation_provider.h" |
13 #include "jni/InvalidationServiceFactory_jni.h" | 13 #include "jni/InvalidationServiceFactory_jni.h" |
14 | 14 |
15 using base::android::ScopedJavaLocalRef; | 15 using base::android::ScopedJavaLocalRef; |
16 | 16 |
17 namespace invalidation { | 17 namespace invalidation { |
18 | 18 |
19 jobject InvalidationServiceFactoryAndroid::GetForProfile(JNIEnv* env, | 19 jobject InvalidationServiceFactoryAndroid::GetForProfile(JNIEnv* env, |
20 jclass clazz, | 20 jclass clazz, |
21 jobject j_profile) { | 21 jobject j_profile) { |
22 Profile* profile = ProfileAndroid::FromProfileAndroid(j_profile); | 22 Profile* profile = ProfileAndroid::FromProfileAndroid(j_profile); |
(...skipping 21 matching lines...) Expand all Loading... |
44 jobject GetForTest(JNIEnv* env, jclass clazz, jobject j_context) { | 44 jobject GetForTest(JNIEnv* env, jclass clazz, jobject j_context) { |
45 return InvalidationServiceFactoryAndroid::GetForTest( | 45 return InvalidationServiceFactoryAndroid::GetForTest( |
46 env, clazz, j_context); | 46 env, clazz, j_context); |
47 } | 47 } |
48 | 48 |
49 bool InvalidationServiceFactoryAndroid::Register(JNIEnv* env) { | 49 bool InvalidationServiceFactoryAndroid::Register(JNIEnv* env) { |
50 return RegisterNativesImpl(env); | 50 return RegisterNativesImpl(env); |
51 } | 51 } |
52 | 52 |
53 } // namespace invalidation | 53 } // namespace invalidation |
OLD | NEW |