Index: content/browser/android/tracing_intent_handler.h |
diff --git a/content/browser/android/tracing_intent_handler.h b/content/browser/android/tracing_intent_handler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..526f672e285c2ab87353d0dd12a5769a7f78183b |
--- /dev/null |
+++ b/content/browser/android/tracing_intent_handler.h |
@@ -0,0 +1,32 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H |
+#define CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H |
+ |
+#include <jni.h> |
+#include <string> |
+ |
+#include "base/file_util.h" |
+#include "content/browser/trace_subscriber_stdio.h" |
+ |
+namespace content { |
+ |
+// Registers the TracingIntentHandler native methods. |
+bool RegisterTracingIntentHandler(JNIEnv* env); |
+ |
+class TracingIntentHandler : public TraceSubscriberStdio { |
+ public: |
+ explicit TracingIntentHandler(const FilePath& path); |
+ virtual ~TracingIntentHandler(); |
+ |
+ // TraceSubscriber implementation |
+ virtual void OnEndTracingComplete() OVERRIDE; |
+ |
+ // IntentHandler |
+ void OnEndTracing(); |
+}; |
+ |
+} // namespace content |
+#endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H |