| 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 #include "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "chromecast/crash/cast_crash_keys.h" | 6 #include "chromecast/crash/cast_crash_keys.h" |
| 7 | 7 |
| 8 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast | 8 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast |
| 9 // specific keys out and make shared with chrome/common/crash_keys.cc. | 9 // specific keys out and make shared with chrome/common/crash_keys.cc. |
| 10 namespace { | 10 namespace { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 { "ppapi_path", kMediumSize }, | 44 { "ppapi_path", kMediumSize }, |
| 45 { "subresource_url", kLargeSize }, | 45 { "subresource_url", kLargeSize }, |
| 46 { "total-discardable-memory-allocated", kSmallSize }, | 46 { "total-discardable-memory-allocated", kSmallSize }, |
| 47 | 47 |
| 48 // gin/: | 48 // gin/: |
| 49 { "v8-ignition", kSmallSize }, | 49 { "v8-ignition", kSmallSize }, |
| 50 | 50 |
| 51 // Copied from common/crash_keys. Remove when | 51 // Copied from common/crash_keys. Remove when |
| 52 // http://crbug.com/598854 is resolved. | 52 // http://crbug.com/598854 is resolved. |
| 53 | 53 |
| 54 // Temporary for http://crbug.com/575245 | |
| 55 { "swapout_frame_id", kSmallSize }, | |
| 56 { "swapout_proxy_id", kSmallSize }, | |
| 57 { "swapout_view_id", kSmallSize }, | |
| 58 { "commit_frame_id", kSmallSize }, | |
| 59 { "commit_proxy_id", kSmallSize }, | |
| 60 { "commit_view_id", kSmallSize }, | |
| 61 { "commit_main_render_frame_id", kSmallSize }, | |
| 62 { "newproxy_proxy_id", kSmallSize }, | |
| 63 { "newproxy_view_id", kSmallSize }, | |
| 64 { "newproxy_opener_id", kSmallSize }, | |
| 65 { "newproxy_parent_id", kSmallSize }, | |
| 66 { "rvinit_view_id", kSmallSize }, | |
| 67 { "rvinit_proxy_id", kSmallSize }, | |
| 68 { "rvinit_main_frame_id", kSmallSize }, | |
| 69 { "initrf_frame_id", kSmallSize }, | |
| 70 { "initrf_proxy_id", kSmallSize }, | |
| 71 { "initrf_view_id", kSmallSize }, | |
| 72 { "initrf_main_frame_id", kSmallSize }, | |
| 73 { "initrf_view_is_live", kSmallSize }, | |
| 74 | |
| 75 // Keys for https://crbug.com/591478 | 54 // Keys for https://crbug.com/591478 |
| 76 { "initrf_parent_proxy_exists", kSmallSize }, | 55 { "initrf_parent_proxy_exists", kSmallSize }, |
| 77 { "initrf_render_view_is_live", kSmallSize }, | 56 { "initrf_render_view_is_live", kSmallSize }, |
| 78 { "initrf_parent_is_in_same_site_instance", kSmallSize}, | 57 { "initrf_parent_is_in_same_site_instance", kSmallSize}, |
| 79 { "initrf_parent_process_is_live", kSmallSize}, | 58 { "initrf_parent_process_is_live", kSmallSize}, |
| 80 { "initrf_root_is_in_same_site_instance", kSmallSize}, | 59 { "initrf_root_is_in_same_site_instance", kSmallSize}, |
| 81 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, | 60 { "initrf_root_is_in_same_site_instance_as_parent", kSmallSize}, |
| 82 { "initrf_root_process_is_live", kSmallSize}, | 61 { "initrf_root_process_is_live", kSmallSize}, |
| 83 { "initrf_root_proxy_is_live", kSmallSize}, | 62 { "initrf_root_proxy_is_live", kSmallSize}, |
| 84 | 63 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 { "swdh_set_hosted_version_worker_pid", kSmallSize }, | 97 { "swdh_set_hosted_version_worker_pid", kSmallSize }, |
| 119 { "swdh_set_hosted_version_host_pid", kSmallSize }, | 98 { "swdh_set_hosted_version_host_pid", kSmallSize }, |
| 120 }; | 99 }; |
| 121 | 100 |
| 122 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), | 101 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), |
| 123 kChunkMaxLength); | 102 kChunkMaxLength); |
| 124 } | 103 } |
| 125 | 104 |
| 126 } // namespace crash_keys | 105 } // namespace crash_keys |
| 127 } // namespace chromecast | 106 } // namespace chromecast |
| OLD | NEW |