summaryrefslogtreecommitdiffstats
path: root/content/browser/android/tracing_intent_handler.h
blob: f916300fc9913a3be30514a3669f0024a7f65c0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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/tracing/trace_subscriber_stdio.h"

namespace content {

// Registers the TracingIntentHandler native methods.
bool RegisterTracingIntentHandler(JNIEnv* env);

class TracingIntentHandler : public TraceSubscriberStdio {
 public:
  explicit TracingIntentHandler(const base::FilePath& path);
  virtual ~TracingIntentHandler();

  // TraceSubscriber implementation
  virtual void OnEndTracingComplete() OVERRIDE;

  // IntentHandler
  void OnEndTracing();
};

}  // namespace content
#endif  // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H