blob: 1ea4b6e40332ba4e778e2d33549a0fbb48852e9a (
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 FilePath& path);
virtual ~TracingIntentHandler();
// TraceSubscriber implementation
virtual void OnEndTracingComplete() OVERRIDE;
// IntentHandler
void OnEndTracing();
};
} // namespace content
#endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H
|