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

Side by Side Diff: chromecast/crash/android/crash_handler.h

Issue 1176003005: Chromecast: Android crash startup can't read path from /data/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: privileged flag --> process_type Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_ 5 #ifndef CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_
6 #define CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_ 6 #define CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Registers JNI methods for this module. 33 // Registers JNI methods for this module.
34 static bool RegisterCastCrashJni(JNIEnv* env); 34 static bool RegisterCastCrashJni(JNIEnv* env);
35 35
36 // Returns whether or not the user has allowed for uploading crash dumps. 36 // Returns whether or not the user has allowed for uploading crash dumps.
37 bool CanUploadCrashDump(); 37 bool CanUploadCrashDump();
38 38
39 void UploadCrashDumps(); 39 void UploadCrashDumps();
40 40
41 private: 41 private:
42 CrashHandler(const base::FilePath& log_file_path); 42 CrashHandler(const std::string& process_type,
43 const base::FilePath& log_file_path);
43 ~CrashHandler(); 44 ~CrashHandler();
44 45
45 void Initialize(const std::string& process_type); 46 void Initialize();
46 47
47 // Starts a thread to periodically check for uploads 48 // Starts a thread to periodically check for uploads
48 void InitializeUploader(); 49 void InitializeUploader();
49 50
50 // Path to the current process's log file. 51 // Path to the current process's log file.
51 base::FilePath log_file_path_; 52 base::FilePath log_file_path_;
52 53
53 // Location to which crash dumps should be written. 54 // Location to which crash dumps should be written.
54 base::FilePath crash_dump_path_; 55 base::FilePath crash_dump_path_;
55 56
57 std::string process_type_;
58
56 scoped_ptr<CastCrashReporterClientAndroid> crash_reporter_client_; 59 scoped_ptr<CastCrashReporterClientAndroid> crash_reporter_client_;
57 scoped_ptr<google_breakpad::ExceptionHandler> crash_uploader_; 60 scoped_ptr<google_breakpad::ExceptionHandler> crash_uploader_;
58 61
59 DISALLOW_COPY_AND_ASSIGN(CrashHandler); 62 DISALLOW_COPY_AND_ASSIGN(CrashHandler);
60 }; 63 };
61 64
62 } // namespace chromecast 65 } // namespace chromecast
63 66
64 #endif // CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_ 67 #endif // CHROMECAST_CRASH_ANDROID_CRASH_HANDLER_H_
OLDNEW
« no previous file with comments | « chromecast/crash/android/cast_crash_reporter_client_android.cc ('k') | chromecast/crash/android/crash_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698