| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ | 5 #ifndef CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ |
| 6 #define CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ | 6 #define CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ |
| 7 | 7 |
| 8 #include <time.h> | 8 #include <time.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Creates an empty lock file and an initialized metadata file. | 135 // Creates an empty lock file and an initialized metadata file. |
| 136 int InitializeFiles(); | 136 int InitializeFiles(); |
| 137 | 137 |
| 138 // Release the lock file with the associated *fd*. | 138 // Release the lock file with the associated *fd*. |
| 139 void ReleaseLockFile(); | 139 void ReleaseLockFile(); |
| 140 | 140 |
| 141 const std::string lockfile_path_; | 141 const std::string lockfile_path_; |
| 142 const std::string metadata_path_; | 142 const std::string metadata_path_; |
| 143 int lockfile_fd_; | 143 int lockfile_fd_; |
| 144 scoped_ptr<base::Value> metadata_; | 144 std::unique_ptr<base::Value> metadata_; |
| 145 scoped_ptr<base::ListValue> dumps_; | 145 std::unique_ptr<base::ListValue> dumps_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(SynchronizedMinidumpManager); | 147 DISALLOW_COPY_AND_ASSIGN(SynchronizedMinidumpManager); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace chromecast | 150 } // namespace chromecast |
| 151 | 151 |
| 152 #endif // CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ | 152 #endif // CHROMECAST_CRASH_LINUX_SYNCHRONIZED_MINIDUMP_MANAGER_H_ |
| OLD | NEW |