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

Side by Side Diff: chrome/browser/android/hung_renderer_infobar_delegate.h

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 years 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 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 #ifndef CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_
7 7
8 #include "components/infobars/core/confirm_infobar_delegate.h" 8 #include "components/infobars/core/confirm_infobar_delegate.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 29 matching lines...) Expand all
40 RENDERER_BECAME_RESPONSIVE, 40 RENDERER_BECAME_RESPONSIVE,
41 TAB_CLOSED, 41 TAB_CLOSED,
42 EVENT_COUNT 42 EVENT_COUNT
43 }; 43 };
44 44
45 explicit HungRendererInfoBarDelegate( 45 explicit HungRendererInfoBarDelegate(
46 content::RenderProcessHost* render_process_host); 46 content::RenderProcessHost* render_process_host);
47 ~HungRendererInfoBarDelegate() override; 47 ~HungRendererInfoBarDelegate() override;
48 48
49 // ConfirmInfoBarDelegate: 49 // ConfirmInfoBarDelegate:
50 std::string GetIdentifier() const override;
50 void InfoBarDismissed() override; 51 void InfoBarDismissed() override;
51 HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate() override; 52 HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate() override;
52 int GetIconId() const override; 53 int GetIconId() const override;
53 base::string16 GetMessageText() const override; 54 base::string16 GetMessageText() const override;
54 base::string16 GetButtonLabel(InfoBarButton button) const override; 55 base::string16 GetButtonLabel(InfoBarButton button) const override;
55 bool Accept() override; 56 bool Accept() override;
56 bool Cancel() override; 57 bool Cancel() override;
57 58
58 void LogEvent(Event event); 59 void LogEvent(Event event);
59 60
60 // Used to terminate the renderer process if the user clicks the kill button. 61 // Used to terminate the renderer process if the user clicks the kill button.
61 content::RenderProcessHost* render_process_host_; 62 content::RenderProcessHost* render_process_host_;
62 63
63 bool terminal_event_logged_for_uma_; 64 bool terminal_event_logged_for_uma_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(HungRendererInfoBarDelegate); 66 DISALLOW_COPY_AND_ASSIGN(HungRendererInfoBarDelegate);
66 }; 67 };
67 68
68 #endif // CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_ 69 #endif // CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698