| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_NTP_SNIPPETS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_SNIPPETS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_CONTROLLER_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 | 11 |
| 12 // The C++ counterpart to SnippetsController.java. Enables Java code to fetch | 12 // The C++ counterpart to SnippetsController.java. Enables Java code to fetch |
| 13 // snippets from the server | 13 // snippets from the server |
| 14 class NTPSnippetsController { | 14 class NTPSnippetsController { |
| 15 public: | 15 public: |
| 16 static bool Register(JNIEnv* env); | 16 static bool Register(JNIEnv* env); |
| 17 | 17 |
| 18 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsController); | 18 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsController); |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 #endif // CHROME_BROWSER_ANDROID_NTP_SNIPPETS_CONTROLLER_H_ | 21 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_CONTROLLER_H_ |
| OLD | NEW |