Chromium Code Reviews| Index: content/public/android/java/src/org/chromium/content/browser/TraceController.java |
| diff --git a/content/public/android/java/src/org/chromium/content/browser/TraceController.java b/content/public/android/java/src/org/chromium/content/browser/TraceController.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..587f5f5d072ab8e6c091b4c28bfe4197604feec4 |
| --- /dev/null |
| +++ b/content/public/android/java/src/org/chromium/content/browser/TraceController.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; |
| + |
| +@JNINamespace("content") |
|
Ted C
2013/01/04 17:40:48
Convention is to put the annotations below the jav
|
| +/** |
| + * Handler for tracing related intent. |
| + */ |
| +public class TraceController { |
|
Ted C
2013/01/04 17:40:48
I would rename this to TracingIntentHandler as wel
|
| + |
| + /** |
| + * 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(); |
| +} |