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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/TracingIntentHandler.java

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/content_jni.gypi ('k') | content/shell/android/java/AndroidManifest.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/TracingIntentHandler.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/TracingIntentHandler.java b/content/public/android/java/src/org/chromium/content/browser/TracingIntentHandler.java
new file mode 100644
index 0000000000000000000000000000000000000000..0be3c35e417e6e699117d46041a3b2f8fdf59965
--- /dev/null
+++ b/content/public/android/java/src/org/chromium/content/browser/TracingIntentHandler.java
@@ -0,0 +1,33 @@
+// 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.
+
+package org.chromium.content.browser;
+
+import org.chromium.base.JNINamespace;
+
+/**
+ * Handler for tracing related intent.
+ */
+@JNINamespace("content")
+public class TracingIntentHandler {
+
+ /**
+ * Begin recording trace events.
+ *
+ * @param path Specifies where the trace data will be saved when tracing is stopped.
+ */
+ public static void beginTracing(String path) {
+ nativeBeginTracing(path);
+ }
+
+ /**
+ * Stop recording trace events, and dump the data to the file
+ */
+ public static void endTracing() {
+ nativeEndTracing();
+ }
+
+ private static native void nativeBeginTracing(String path);
+ private static native void nativeEndTracing();
+}
« no previous file with comments | « content/content_jni.gypi ('k') | content/shell/android/java/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698