1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H_ 6 #define CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H_ 7 8 #include <jni.h> 9 #include <string> 10 11 #include "content/browser/tracing/trace_subscriber_stdio.h" 12 13 namespace content { 14 15 // Registers the TracingIntentHandler native methods. 16 bool RegisterTracingIntentHandler(JNIEnv* env); 17 18 class TracingIntentHandler : public TraceSubscriberStdio { 19 public: 20 explicit TracingIntentHandler(const base::FilePath& path); 21 virtual ~TracingIntentHandler(); 22 23 // TraceSubscriber implementation 24 virtual void OnEndTracingComplete() OVERRIDE; 25 26 // IntentHandler 27 void OnEndTracing(); 28 }; 29 30 } // namespace content 31 #endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H_ 32