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