Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_ANDROID_NTP_SNIPPETS_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_NTP_SNIPPETS_CONTROLLER_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 | |
| 10 #include "base/android/scoped_java_ref.h" | |
| 11 #include "components/ntp_snippets/ntp_snippets_service.h" | |
|
Bernhard Bauer
2016/02/08 18:19:26
I don't think you need this include.
May
2016/02/09 17:38:53
Removed the member NTPSnippetsService variable
| |
| 12 | |
| 13 namespace ntp_snippets { | |
| 14 | |
| 15 class NTPSnippetsService; | |
| 16 | |
| 17 // The C++ counterpart to SnippetsController.java. Enables Java code to fetch | |
| 18 // snippets from the server | |
| 19 class NTPSnippetsController { | |
| 20 public: | |
| 21 explicit NTPSnippetsController(jobject j_profile); | |
| 22 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); | |
| 23 void FetchSnippets(JNIEnv* env, | |
| 24 const base::android::JavaParamRef<jobject>& obj, | |
| 25 jboolean overwrite); | |
| 26 | |
| 27 private: | |
| 28 ~NTPSnippetsController(); | |
| 29 | |
| 30 NTPSnippetsService* ntp_snippets_service_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsController); | |
| 33 }; | |
| 34 | |
| 35 bool RegisterNTPSnippetsController(JNIEnv* env); | |
| 36 | |
| 37 } // namespace ntp_snippets | |
| 38 | |
| 39 #endif // CHROME_BROWSER_ANDROID_NTP_SNIPPETS_CONTROLLER_H_ | |
| OLD | NEW |