Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: content/browser/android/tracing_intent_handler.h

Issue 11647013: Enable Tracing on content shell for Android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add OVERRIDE to fix clang build error Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/android/tracing_intent_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/browser/android/browser_jni_registrar.cc ('k') | content/browser/android/tracing_intent_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698