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 #include "content/browser/android/tracing_intent_handler.h" | 5 #include "content/browser/android/tracing_intent_handler.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
| 9 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "content/public/browser/trace_controller.h" | 11 #include "content/public/browser/trace_controller.h" |
11 #include "jni/TracingIntentHandler_jni.h" | 12 #include "jni/TracingIntentHandler_jni.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 TracingIntentHandler* g_trace_intent_handler = NULL; | 16 TracingIntentHandler* g_trace_intent_handler = NULL; |
16 | 17 |
17 TracingIntentHandler::TracingIntentHandler(const base::FilePath& path) | 18 TracingIntentHandler::TracingIntentHandler(const base::FilePath& path) |
18 : TraceSubscriberStdio(path) { | 19 : TraceSubscriberStdio(path) { |
(...skipping 28 matching lines...) Expand all Loading... |
47 DCHECK(!g_trace_intent_handler); | 48 DCHECK(!g_trace_intent_handler); |
48 g_trace_intent_handler->OnEndTracing(); | 49 g_trace_intent_handler->OnEndTracing(); |
49 g_trace_intent_handler = NULL; | 50 g_trace_intent_handler = NULL; |
50 } | 51 } |
51 | 52 |
52 bool RegisterTracingIntentHandler(JNIEnv* env) { | 53 bool RegisterTracingIntentHandler(JNIEnv* env) { |
53 return RegisterNativesImpl(env); | 54 return RegisterNativesImpl(env); |
54 } | 55 } |
55 | 56 |
56 } // namespace content | 57 } // namespace content |
OLD | NEW |