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

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: Nit again Created 4 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "components/infobars/core/confirm_infobar_delegate.h" 9 #include "components/infobars/core/confirm_infobar_delegate.h"
10 10
(...skipping 30 matching lines...) Expand all
41 RENDERER_BECAME_RESPONSIVE, 41 RENDERER_BECAME_RESPONSIVE,
42 TAB_CLOSED, 42 TAB_CLOSED,
43 EVENT_COUNT 43 EVENT_COUNT
44 }; 44 };
45 45
46 explicit HungRendererInfoBarDelegate( 46 explicit HungRendererInfoBarDelegate(
47 content::RenderProcessHost* render_process_host); 47 content::RenderProcessHost* render_process_host);
48 ~HungRendererInfoBarDelegate() override; 48 ~HungRendererInfoBarDelegate() override;
49 49
50 // ConfirmInfoBarDelegate: 50 // ConfirmInfoBarDelegate:
51 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
51 void InfoBarDismissed() override; 52 void InfoBarDismissed() override;
52 HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate() override; 53 HungRendererInfoBarDelegate* AsHungRendererInfoBarDelegate() override;
53 int GetIconId() const override; 54 int GetIconId() const override;
54 base::string16 GetMessageText() const override; 55 base::string16 GetMessageText() const override;
55 base::string16 GetButtonLabel(InfoBarButton button) const override; 56 base::string16 GetButtonLabel(InfoBarButton button) const override;
56 bool Accept() override; 57 bool Accept() override;
57 bool Cancel() override; 58 bool Cancel() override;
58 59
59 void LogEvent(Event event); 60 void LogEvent(Event event);
60 61
61 // Used to terminate the renderer process if the user clicks the kill button. 62 // Used to terminate the renderer process if the user clicks the kill button.
62 content::RenderProcessHost* render_process_host_; 63 content::RenderProcessHost* render_process_host_;
63 64
64 bool terminal_event_logged_for_uma_; 65 bool terminal_event_logged_for_uma_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(HungRendererInfoBarDelegate); 67 DISALLOW_COPY_AND_ASSIGN(HungRendererInfoBarDelegate);
67 }; 68 };
68 69
69 #endif // CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_ 70 #endif // CHROME_BROWSER_ANDROID_HUNG_RENDERER_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698