Chromium Code Reviews| Index: content/browser/android/tracing_intent_handler.h |
| diff --git a/content/browser/android/tracing_intent_handler.h b/content/browser/android/tracing_intent_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f9f5a667418f62647198b6d41bd98aca28754a35 |
| --- /dev/null |
| +++ b/content/browser/android/tracing_intent_handler.h |
| @@ -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. |
| + |
| +#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/trace_subscriber_stdio.h" |
| + |
| +namespace content { |
| + |
| +// Registers the TraceController native methods. |
| +bool RegisterTracingIntentHandler(JNIEnv* env); |
| + |
| +class TracingIntentHandler |
| + : public TraceSubscriberStdio { |
|
Ted C
2013/01/04 17:40:48
this looks like it might fit on the previous line.
|
| + public: |
| + explicit TracingIntentHandler(const FilePath& path); |
| + virtual ~TracingIntentHandler() {} |
|
Ted C
2013/01/04 17:40:48
we rarely inline destructors, so you might want to
|
| + |
| + // TraceSubscriber implementation |
| + virtual void OnEndTracingComplete(); |
| + |
| + // IntentHandler |
| + void OnEndTracing(); |
| +}; |
| + |
| +} // namespace content |
| +#endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H |