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" | |
12 #include "content/browser/tracing/trace_subscriber_stdio.h" | 11 #include "content/browser/tracing/trace_subscriber_stdio.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // Registers the TracingIntentHandler native methods. | 15 // Registers the TracingIntentHandler native methods. |
17 bool RegisterTracingIntentHandler(JNIEnv* env); | 16 bool RegisterTracingIntentHandler(JNIEnv* env); |
18 | 17 |
19 class TracingIntentHandler : public TraceSubscriberStdio { | 18 class TracingIntentHandler : public TraceSubscriberStdio { |
20 public: | 19 public: |
21 explicit TracingIntentHandler(const base::FilePath& path); | 20 explicit TracingIntentHandler(const base::FilePath& path); |
22 virtual ~TracingIntentHandler(); | 21 virtual ~TracingIntentHandler(); |
23 | 22 |
24 // TraceSubscriber implementation | 23 // TraceSubscriber implementation |
25 virtual void OnEndTracingComplete() OVERRIDE; | 24 virtual void OnEndTracingComplete() OVERRIDE; |
26 | 25 |
27 // IntentHandler | 26 // IntentHandler |
28 void OnEndTracing(); | 27 void OnEndTracing(); |
29 }; | 28 }; |
30 | 29 |
31 } // namespace content | 30 } // namespace content |
32 #endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H | 31 #endif // CONTENT_BROWSER_ANDROID_TRACING_INTENT_HANDLER_H_ |
OLD | NEW |