| 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();
|
| +}
|
|
|