| 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 CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ | 5 #ifndef CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ |
| 6 #define CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ | 6 #define CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 namespace chromecast { | 14 namespace chromecast { |
| 15 | 15 |
| 16 // JNI wrapper for DumpstateWriter.java. | 16 // JNI wrapper for DumpstateWriter.java. |
| 17 class DumpstateWriter { | 17 class DumpstateWriter { |
| 18 public: | 18 public: |
| 19 static bool RegisterJni(JNIEnv* env); | |
| 20 static void AddDumpValue(const std::string& name, const std::string& value); | 19 static void AddDumpValue(const std::string& name, const std::string& value); |
| 21 | 20 |
| 22 private: | 21 private: |
| 23 DISALLOW_IMPLICIT_CONSTRUCTORS(DumpstateWriter); | 22 DISALLOW_IMPLICIT_CONSTRUCTORS(DumpstateWriter); |
| 24 }; | 23 }; |
| 25 | 24 |
| 26 } // namespace chromecast | 25 } // namespace chromecast |
| 27 | 26 |
| 28 #endif // CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ | 27 #endif // CHROMECAST_BASE_ANDROID_DUMPSTATE_WRITER_H_ |
| OLD | NEW |