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

Side by Side Diff: blimp/engine/app/blimp_engine_crash_keys.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "blimp/engine/app/blimp_engine_crash_keys.h"
6
7 #include "base/debug/crash_logging.h"
8 #include "base/macros.h"
9 #include "components/crash/core/common/crash_keys.h"
10
11 namespace blimp {
12 namespace engine {
13
14 size_t RegisterEngineCrashKeys() {
15 // For now these need to be kept relatively up to date with those in
16 // //chrome/common/crash_keys.cc::RegisterChromeCrashKeys()
17 // All of the keys used in //content and //components/crash must show up
18 // here.
19 // TODO(marcinjb): Change the approach when http://crbug.com/598854 is
20 // resolved.
21 const base::debug::CrashKey engine_keys[] = {
22 { crash_keys::kClientId, crash_keys::kSmallSize },
23 { crash_keys::kChannel, crash_keys::kSmallSize },
24 { crash_keys::kNumVariations, crash_keys::kSmallSize },
25 { crash_keys::kVariations, crash_keys::kLargeSize },
26
27 // browser/:
28 { "browser-unpin-trace", crash_keys::kMediumSize},
29 { "third-party-modules-loaded", crash_keys::kSmallSize },
30 { "third-party-modules-not-loaded", crash_keys::kSmallSize },
31 { "enrolled-to-domain", crash_keys::kSmallSize },
32
33 // //content crash keys
34 { "bad_message_reason", crash_keys::kSmallSize },
35 { "channel_error_bt", crash_keys::kMediumSize },
36 { "discardable-memory-allocated", crash_keys::kSmallSize },
37 { "discardable-memory-free", crash_keys::kSmallSize },
38 { "mojo-message-error", crash_keys::kMediumSize },
39 { "ppapi_path", crash_keys::kMediumSize },
40 { "remove_route_bt", crash_keys::kMediumSize },
41 { "rwhvm_window", crash_keys::kMediumSize },
42 { "subresource_url", crash_keys::kLargeSize },
43 { "total-discardable-memory-allocated", crash_keys::kSmallSize },
44
45 // gin/:
46 { "v8-ignition", crash_keys::kSmallSize },
47
48 // Temporary for http://crbug.com/575245.
49 { "commit_frame_id", crash_keys::kSmallSize },
50 { "commit_proxy_id", crash_keys::kSmallSize },
51 { "commit_view_id", crash_keys::kSmallSize },
52 { "commit_main_render_frame_id", crash_keys::kSmallSize },
53 { "initrf_frame_id", crash_keys::kSmallSize },
54 { "initrf_proxy_id", crash_keys::kSmallSize },
55 { "initrf_view_id", crash_keys::kSmallSize },
56 { "initrf_main_frame_id", crash_keys::kSmallSize },
57 { "initrf_view_is_live", crash_keys::kSmallSize },
58 { "newproxy_proxy_id", crash_keys::kSmallSize },
59 { "newproxy_view_id", crash_keys::kSmallSize },
60 { "newproxy_opener_id", crash_keys::kSmallSize },
61 { "newproxy_parent_id", crash_keys::kSmallSize },
62 { "rvinit_view_id", crash_keys::kSmallSize },
63 { "rvinit_proxy_id", crash_keys::kSmallSize },
64 { "rvinit_main_frame_id", crash_keys::kSmallSize },
65 { "swapout_frame_id", crash_keys::kSmallSize },
66 { "swapout_proxy_id", crash_keys::kSmallSize },
67 { "swapout_view_id", crash_keys::kSmallSize },
68
69 // Temporary for https://crbug.com/591478.
70 { "initrf_parent_proxy_exists", crash_keys::kSmallSize },
71 { "initrf_render_view_is_live", crash_keys::kSmallSize },
72 { "initrf_parent_is_in_same_site_instance", crash_keys::kSmallSize},
73 { "initrf_parent_process_is_live", crash_keys::kSmallSize},
74 { "initrf_root_is_in_same_site_instance", crash_keys::kSmallSize},
75 { "initrf_root_is_in_same_site_instance_as_parent",
76 crash_keys::kSmallSize},
77 { "initrf_root_process_is_live", crash_keys::kSmallSize},
78 { "initrf_root_proxy_is_live", crash_keys::kSmallSize},
79
80 // Temporary for https://crbug.com/626802.
81 { "newframe_routing_id", crash_keys::kSmallSize },
82 { "newframe_proxy_id", crash_keys::kSmallSize },
83 { "newframe_opener_id", crash_keys::kSmallSize },
84 { "newframe_parent_id", crash_keys::kSmallSize },
85 { "newframe_widget_id", crash_keys::kSmallSize },
86 { "newframe_widget_hidden", crash_keys::kSmallSize },
87 { "newframe_replicated_origin", crash_keys::kSmallSize },
88 { "newframe_oopifs_possible", crash_keys::kSmallSize },
89
90 // Temporary for https://crbug.com/630103.
91 { "origin_mismatch_url", crash_keys::kLargeSize },
92 { "origin_mismatch_origin", crash_keys::kMediumSize },
93 { "origin_mismatch_transition", crash_keys::kSmallSize },
94 { "origin_mismatch_redirects", crash_keys::kSmallSize },
95 { "origin_mismatch_same_page", crash_keys::kSmallSize },
96
97 // Temporary for https://crbug.com/612711.
98 { "aci_wrong_sp_extension_id", crash_keys::kSmallSize },
99
100 // Temporary for https://crbug.com/616149.
101 { "existing_extension_pref_value_type", crash_keys::kSmallSize },
102
103 // Temporary for https://crbug.com/668633.
104 { "swdh_set_hosted_version_worker_pid", crash_keys::kSmallSize },
105 { "swdh_set_hosted_version_host_pid", crash_keys::kSmallSize },
106 { "swdh_set_hosted_version_is_new_process", crash_keys::kSmallSize },
107 { "swdh_set_hosted_version_restart_count", crash_keys::kSmallSize },
108 };
109
110 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys),
111 crash_keys::kChunkMaxLength);
112 }
113
114 } // namespace engine
115 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_engine_crash_keys.h ('k') | blimp/engine/app/blimp_engine_crash_reporter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698