OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_NEW_TAB_PAGE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ | 6 #define CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "base/macros.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 | 13 |
13 class NewTabPagePrefs { | 14 class NewTabPagePrefs { |
14 public: | 15 public: |
15 explicit NewTabPagePrefs(Profile* profile); | 16 explicit NewTabPagePrefs(Profile* profile); |
16 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | 17 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
17 | 18 |
18 jboolean GetCurrentlyOpenTabsCollapsed( | 19 jboolean GetCurrentlyOpenTabsCollapsed( |
19 JNIEnv* env, | 20 JNIEnv* env, |
20 const base::android::JavaParamRef<jobject>& obj); | 21 const base::android::JavaParamRef<jobject>& obj); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 static bool RegisterNewTabPagePrefs(JNIEnv* env); | 60 static bool RegisterNewTabPagePrefs(JNIEnv* env); |
60 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 61 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
61 private: | 62 private: |
62 virtual ~NewTabPagePrefs(); | 63 virtual ~NewTabPagePrefs(); |
63 | 64 |
64 Profile* profile_; // weak | 65 Profile* profile_; // weak |
65 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); | 66 DISALLOW_COPY_AND_ASSIGN(NewTabPagePrefs); |
66 }; | 67 }; |
67 | 68 |
68 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ | 69 #endif // CHROME_BROWSER_ANDROID_NEW_TAB_PAGE_PREFS_H_ |
OLD | NEW |