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 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDROID_
H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDROID_
H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDROID_
H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDROID_
H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 12 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
13 #include "components/supervised_user_error_page/supervised_user_error_page.h" | 13 #include "components/supervised_user_error_page/supervised_user_error_page.h" |
14 | 14 |
15 class SupervisedUserService; | 15 class Profile; |
16 | 16 |
17 class SupervisedUserContentProvider { | 17 class SupervisedUserContentProvider { |
18 public: | 18 public: |
19 SupervisedUserContentProvider( | 19 SupervisedUserContentProvider( |
20 JNIEnv* env, | 20 JNIEnv* env, |
21 const base::android::JavaParamRef<jobject>& caller); | 21 const base::android::JavaParamRef<jobject>& caller); |
22 virtual ~SupervisedUserContentProvider(); | 22 virtual ~SupervisedUserContentProvider(); |
23 | 23 |
24 void ShouldProceed( | 24 void ShouldProceed( |
25 JNIEnv* env, | 25 JNIEnv* env, |
(...skipping 21 matching lines...) Expand all Loading... |
47 bool sent_ok); | 47 bool sent_ok); |
48 Profile* profile_; | 48 Profile* profile_; |
49 base::android::ScopedJavaGlobalRef<jobject> java_content_provider_; | 49 base::android::ScopedJavaGlobalRef<jobject> java_content_provider_; |
50 | 50 |
51 base::WeakPtrFactory<SupervisedUserContentProvider> weak_factory_; | 51 base::WeakPtrFactory<SupervisedUserContentProvider> weak_factory_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(SupervisedUserContentProvider); | 53 DISALLOW_COPY_AND_ASSIGN(SupervisedUserContentProvider); |
54 }; | 54 }; |
55 | 55 |
56 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDRO
ID_H_ | 56 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_CONTENT_PROVIDER_ANDRO
ID_H_ |
OLD | NEW |