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

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

Issue 1925993004: Initial addition of Blimp engine crash client code (take 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with head and resolve conflicts Created 4 years, 7 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 // //content crash keys
28 { "channel_error_bt", crash_keys::kMediumSize },
29 { "discardable-memory-allocated", crash_keys::kSmallSize },
30 { "discardable-memory-free", crash_keys::kSmallSize },
31 { "ppapi_path", crash_keys::kMediumSize },
32 { "remove_route_bt", crash_keys::kMediumSize },
33 { "rwhvm_window", crash_keys::kMediumSize },
34 { "subresource_url", crash_keys::kLargeSize },
35 { "total-discardable-memory-allocated", crash_keys::kSmallSize },
36
37 // Temporary for http://crbug.com/575245.
38 { "commit_frame_id", crash_keys::kSmallSize },
39 { "commit_proxy_id", crash_keys::kSmallSize },
40 { "commit_view_id", crash_keys::kSmallSize },
41 { "commit_main_render_frame_id", crash_keys::kSmallSize },
42 { "initrf_frame_id", crash_keys::kSmallSize },
43 { "initrf_proxy_id", crash_keys::kSmallSize },
44 { "initrf_view_id", crash_keys::kSmallSize },
45 { "initrf_main_frame_id", crash_keys::kSmallSize },
46 { "initrf_view_is_live", crash_keys::kSmallSize },
47 { "newproxy_proxy_id", crash_keys::kSmallSize },
48 { "newproxy_view_id", crash_keys::kSmallSize },
49 { "newproxy_opener_id", crash_keys::kSmallSize },
50 { "newproxy_parent_id", crash_keys::kSmallSize },
51 { "rvinit_view_id", crash_keys::kSmallSize },
52 { "rvinit_proxy_id", crash_keys::kSmallSize },
53 { "rvinit_main_frame_id", crash_keys::kSmallSize },
54 { "swapout_frame_id", crash_keys::kSmallSize },
55 { "swapout_proxy_id", crash_keys::kSmallSize },
56 { "swapout_view_id", crash_keys::kSmallSize },
57
58 // Temporary for https://crbug.com/591478.
59 { "initrf_parent_proxy_exists", crash_keys::kSmallSize },
60 { "initrf_render_view_is_live", crash_keys::kSmallSize },
61 { "initrf_parent_is_in_same_site_instance", crash_keys::kSmallSize},
62 { "initrf_parent_process_is_live", crash_keys::kSmallSize},
63 { "initrf_root_is_in_same_site_instance", crash_keys::kSmallSize},
64 { "initrf_root_is_in_same_site_instance_as_parent",
65 crash_keys::kSmallSize},
66 { "initrf_root_process_is_live", crash_keys::kSmallSize},
67 { "initrf_root_proxy_is_live", crash_keys::kSmallSize},
68
69 // Temporary for https://crbug.com/600441
70 { "cookie_url", crash_keys::kSmallSize },
71 { "cookie_first_party", crash_keys::kSmallSize },
72 { "security_policy_origin_lock", crash_keys::kSmallSize },
73 };
74
75 return base::debug::InitCrashKeys(engine_keys, arraysize(engine_keys),
76 crash_keys::kChunkMaxLength);
77 }
78
79 } // namespace engine
80 } // 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