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

Side by Side Diff: content/public/browser/web_contents_unresponsive_state.h

Issue 2737553003: Remove ChildProcess.HangRendererType. (Closed)
Patch Set: rebase to tot Created 3 years, 9 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
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/public/browser/renderer_unresponsive_type.h"
10 #include "third_party/WebKit/public/platform/WebInputEvent.h" 9 #include "third_party/WebKit/public/platform/WebInputEvent.h"
11 10
12 namespace content { 11 namespace content {
13 12
14 // Contains a variety of information regarding the state 13 // Contains a variety of information regarding the state
15 // at which a renderer was marked as unresponsive. Some of 14 // at which a renderer was marked as unresponsive. Some of
16 // this information may be provided in a crash report. 15 // this information may be provided in a crash report.
17 struct CONTENT_EXPORT WebContentsUnresponsiveState { 16 struct CONTENT_EXPORT WebContentsUnresponsiveState {
18 WebContentsUnresponsiveState(); 17 WebContentsUnresponsiveState();
19 18
20 // The reason why the renderer was unresponsive.
21 RendererUnresponsiveType reason;
22
23 // TODO(dtapuska): Remove these fields once crbug.com/615090 is fixed. 19 // TODO(dtapuska): Remove these fields once crbug.com/615090 is fixed.
24 // The number of outstanding blocking input events sent to the renderer 20 // The number of outstanding blocking input events sent to the renderer
25 // that have not be acknowledged. 21 // that have not be acknowledged.
26 size_t outstanding_ack_count; 22 size_t outstanding_ack_count;
27 // The input event type that started the unresponsive state timeout. 23 // The input event type that started the unresponsive state timeout.
28 blink::WebInputEvent::Type outstanding_event_type; 24 blink::WebInputEvent::Type outstanding_event_type;
29 // The last blocking input event type sent to the renderer. 25 // The last blocking input event type sent to the renderer.
30 blink::WebInputEvent::Type last_event_type; 26 blink::WebInputEvent::Type last_event_type;
31 }; 27 };
32 28
33 } // namespace content 29 } // namespace content
34 30
35 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_ 31 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_UNRESPONSIVE_STATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/renderer_unresponsive_type.h ('k') | content/public/browser/web_contents_unresponsive_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698