| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package browser_watcher; | 9 package browser_watcher; |
| 10 | 10 |
| 11 // The state of the system on which Chrome is running (shutting down, battery | 11 // The state of the system on which Chrome is running (shutting down, battery |
| 12 // level, load, etc.). | 12 // level, load, etc.). |
| 13 // Next id: 1 | 13 // Next id: 2 |
| 14 message SystemState { | 14 message SystemState { |
| 15 // TODO(manzagop): flesh out. | 15 // The state of a system session. A system session begins when the system |
| 16 // starts and ends when it shuts down. |
| 17 enum SessionState { |
| 18 UNKNOWN = 0; |
| 19 CLEAN = 1; // Normal shutdown. |
| 20 UNCLEAN = 2; // Abnormal shutdown (system crash, power loss). |
| 21 } |
| 22 |
| 23 // The state of the system session that contained Chrome's execution. |
| 24 optional SessionState session_state = 1; |
| 16 } | 25 } |
| 17 | 26 |
| 18 // Next id: 10 | 27 // Next id: 10 |
| 19 message CodeModule { | 28 message CodeModule { |
| 20 // The base address of this code module as it was loaded by the process. | 29 // The base address of this code module as it was loaded by the process. |
| 21 optional int64 base_address = 1; | 30 optional int64 base_address = 1; |
| 22 | 31 |
| 23 // The size of the code module. | 32 // The size of the code module. |
| 24 optional int64 size = 2; | 33 optional int64 size = 2; |
| 25 | 34 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // command line, etc. | 186 // command line, etc. |
| 178 repeated ProcessState process_states = 2; | 187 repeated ProcessState process_states = 2; |
| 179 // TODO(manzagop): if/when reports contain multiple processes, attribute and | 188 // TODO(manzagop): if/when reports contain multiple processes, attribute and |
| 180 // relocate these to their process (and perhaps thread). | 189 // relocate these to their process (and perhaps thread). |
| 181 repeated string log_messages = 3; | 190 repeated string log_messages = 3; |
| 182 map<string, TypedValue> global_data = 4; | 191 map<string, TypedValue> global_data = 4; |
| 183 | 192 |
| 184 // The field trials the user is currently enrolled in. | 193 // The field trials the user is currently enrolled in. |
| 185 repeated FieldTrial field_trials = 5; | 194 repeated FieldTrial field_trials = 5; |
| 186 } | 195 } |
| OLD | NEW |