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

Side by Side Diff: content/public/common/crash_keys.cc

Issue 1849413003: Define crash keys in the directory hierarchy where they are used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with head Created 4 years, 5 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
« no previous file with comments | « content/public/common/crash_keys.h ('k') | media/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/public/common/crash_keys.h"
6
7 #include <vector>
8
9 #include "base/logging.h"
10 #include "build/build_config.h"
11 #include "components/crash/core/common/crash_keys.h"
12
13 namespace crash_keys {
14
15 // Crash keys
16 const char kDiscardableMemoryAllocated[] = "discardable-memory-allocated";
17 const char kDiscardableMemoryFree[] = "discardable-memory-free";
18 const char kFontKeyName[] = "font_key_name";
19 const char kPpapiPath[] = "ppapi_path";
20 const char kSubresourceUrl[] = "subresource_url";
21 const char kTotalDiscardableMemoryAllocated[] =
22 "total-discardable-memory-allocated";
23
24 #if defined(OS_MACOSX)
25 const char kChannelErrorBt[] = "channel_error_bt";
26 const char kRemoveRouteBt[] = "remove_route_bt";
27 const char kRwhvmWindow[] = "rhvm_window";
28 #endif
29
30 // Temporary for http://crbug.com/575245
31 const char kSwapoutFrameId[] = "swapout_frame_id";
32 const char kSwapoutProxyId[] = "swapout_proxy_id";
33 const char kSwapoutViewId[] = "swapout_view_id";
34 const char kCommitFrameId[] = "commit_frame_id";
35 const char kCommitProxyId[] = "commit_proxy_id";
36 const char kCommitViewId[] = "commit_view_id";
37 const char kCommitMainRenderFrameId[] = "commit_main_render_frame_id";
38 const char kNewproxyProxyId[] = "newproxy_proxy_id";
39 const char kNewproxyViewId[] = "newproxy_view_id";
40 const char kNewproxyOpenerId[] = "newproxy_opener_id";
41 const char kNewproxyParentId[] = "newproxy_parent_id";
42 const char kRvinitViewId[] = "rvinit_view_id";
43 const char kRvinitProxyId[] = "rvinit_proxy_id";
44 const char kRvinitMainFrameId[] = "rvinit_main_frame_id";
45 const char kInitrfFrameId[] = "initrf_frame_id";
46 const char kInitrfViewId[] = "initrf_view_id";
47 const char kInitrfMainFrameId[] = "initrf_main_frame_id";
48 const char kInitrfViewIsLive[] = "initrf_view_is_live";
49
50 // Temporary for http://crbug.com/591478
51 const char kInitrfParentProxyExists[] = "initrf_parent_proxy_exists";
52 const char kInitrfRenderViewIsLive[] = "initrf_render_view_is_live";
53
54 void AppendContentCrashKeys(std::vector<base::debug::CrashKey>* keys) {
55 DCHECK(keys);
56 const std::vector<base::debug::CrashKey> content_keys = {
57 { kDiscardableMemoryAllocated, kSmallSize },
58 { kDiscardableMemoryFree, kSmallSize },
59 { kFontKeyName, kSmallSize },
60 { kPpapiPath, kMediumSize },
61 { kSubresourceUrl, kLargeSize },
62 { kTotalDiscardableMemoryAllocated, kSmallSize },
63
64 #if defined(OS_MACOSX)
65 { kChannelErrorBt, kMediumSize },
66 { kRemoveRouteBt, kMediumSize },
67 { kRwhvmWindow, kMediumSize },
68 #endif
69
70 // Temporary for http://crbug.com/575245
71 { kSwapoutFrameId, kSmallSize },
72 { kSwapoutProxyId, kSmallSize },
73 { kSwapoutViewId, kSmallSize },
74 { kCommitFrameId, kSmallSize },
75 { kCommitProxyId, kSmallSize },
76 { kCommitViewId, kSmallSize },
77 { kCommitMainRenderFrameId, kSmallSize },
78 { kNewproxyProxyId, kSmallSize },
79 { kNewproxyViewId, kSmallSize },
80 { kNewproxyOpenerId, kSmallSize },
81 { kNewproxyParentId, kSmallSize },
82 { kRvinitViewId, kSmallSize },
83 { kRvinitProxyId, kSmallSize },
84 { kRvinitMainFrameId, kSmallSize },
85 { kInitrfFrameId, kSmallSize },
86 { kInitrfViewId, kSmallSize },
87 { kInitrfMainFrameId, kSmallSize },
88 { kInitrfViewIsLive, kSmallSize },
89
90 // Temporary for http://crbug.com/591478
91 { kInitrfParentProxyExists, kSmallSize },
92 { kInitrfRenderViewIsLive, kSmallSize },
93 };
94
95 keys->insert(keys->end(), content_keys.begin(), content_keys.end());
96 }
97
98 } // namespace crash_keys
OLDNEW
« no previous file with comments | « content/public/common/crash_keys.h ('k') | media/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698