#ifndef CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_
#define CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_
#include "base/android/jni_helper.h"
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
namespace content {
class TracingControllerAndroid {
public:
TracingControllerAndroid(JNIEnv* env, jobject obj);
void Destroy(JNIEnv* env, jobject obj);
bool StartTracing(JNIEnv* env,
jobject obj,
jstring filename,
jstring categories,
jboolean record_continuously);
void StopTracing(JNIEnv* env, jobject obj);
private:
~TracingControllerAndroid();
void OnTracingStopped(const base::FilePath& file_path);
JavaObjectWeakGlobalRef weak_java_object_;
base::FilePath file_path_;
base::WeakPtrFactory<TracingControllerAndroid> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(TracingControllerAndroid);
};
bool RegisterTracingControllerAndroid(JNIEnv* env);
}
#endif