Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: content/browser/android/tracing_controller_android.h

Issue 541763002: tracing: get rid of files in TracingController interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed system trace collection Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTROLLER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_
6 #define CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_ 6 #define CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 11 matching lines...) Expand all
22 bool StartTracing(JNIEnv* env, 22 bool StartTracing(JNIEnv* env,
23 jobject obj, 23 jobject obj,
24 jstring categories, 24 jstring categories,
25 jstring trace_options); 25 jstring trace_options);
26 void StopTracing(JNIEnv* env, jobject obj, jstring jfilepath); 26 void StopTracing(JNIEnv* env, jobject obj, jstring jfilepath);
27 bool GetKnownCategoryGroupsAsync(JNIEnv* env, jobject obj); 27 bool GetKnownCategoryGroupsAsync(JNIEnv* env, jobject obj);
28 static void GenerateTracingFilePath(base::FilePath* file_path); 28 static void GenerateTracingFilePath(base::FilePath* file_path);
29 29
30 private: 30 private:
31 ~TracingControllerAndroid(); 31 ~TracingControllerAndroid();
32 void OnTracingStopped(const base::FilePath& file_path); 32 void OnTracingStopped();
33 void OnKnownCategoriesReceived( 33 void OnKnownCategoriesReceived(
34 const std::set<std::string>& categories_received); 34 const std::set<std::string>& categories_received);
35 35
36 JavaObjectWeakGlobalRef weak_java_object_; 36 JavaObjectWeakGlobalRef weak_java_object_;
37 base::WeakPtrFactory<TracingControllerAndroid> weak_factory_; 37 base::WeakPtrFactory<TracingControllerAndroid> weak_factory_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(TracingControllerAndroid); 39 DISALLOW_COPY_AND_ASSIGN(TracingControllerAndroid);
40 }; 40 };
41 41
42 // Register this class's native methods through jni. 42 // Register this class's native methods through jni.
43 bool RegisterTracingControllerAndroid(JNIEnv* env); 43 bool RegisterTracingControllerAndroid(JNIEnv* env);
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_ 47 #endif // CONTENT_BROWSER_ANDROID_TRACING_CONTROLLER_ANDROID_H_
OLDNEW
« no previous file with comments | « components/feedback/tracing_manager.cc ('k') | content/browser/android/tracing_controller_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698