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

Side by Side Diff: chrome/browser/ui/views/session_crashed_bubble_view.h

Issue 2641813004: Convert SessionCrashedBubbleView to use the new navigation callbacks. (Closed)
Patch Set: add comment Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/session_crashed_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 // views::BubbleDialogDelegateView methods. 69 // views::BubbleDialogDelegateView methods.
70 void Init() override; 70 void Init() override;
71 71
72 // views::StyledLabelListener methods. 72 // views::StyledLabelListener methods.
73 void StyledLabelLinkClicked(views::StyledLabel* label, 73 void StyledLabelLinkClicked(views::StyledLabel* label,
74 const gfx::Range& range, 74 const gfx::Range& range,
75 int event_flags) override; 75 int event_flags) override;
76 76
77 // content::WebContentsObserver methods. 77 // content::WebContentsObserver methods.
78 void DidStartNavigationToPendingEntry(
79 const GURL& url,
80 content::ReloadType reload_type) override;
81 void DidFinishLoad(content::RenderFrameHost* render_frame_host, 78 void DidFinishLoad(content::RenderFrameHost* render_frame_host,
82 const GURL& validated_url) override; 79 const GURL& validated_url) override;
83 void WasShown() override; 80 void WasShown() override;
84 void WasHidden() override; 81 void WasHidden() override;
85 82
86 // content::NotificationObserver methods. 83 // content::NotificationObserver methods.
87 void Observe(int type, 84 void Observe(int type,
88 const content::NotificationSource& source, 85 const content::NotificationSource& source,
89 const content::NotificationDetails& details) override; 86 const content::NotificationDetails& details) override;
90 87
(...skipping 16 matching lines...) Expand all
107 104
108 // The web content associated with current bubble. 105 // The web content associated with current bubble.
109 content::WebContents* web_contents_; 106 content::WebContents* web_contents_;
110 107
111 // Checkbox for the user to opt-in to UMA reporting. 108 // Checkbox for the user to opt-in to UMA reporting.
112 views::Checkbox* uma_option_; 109 views::Checkbox* uma_option_;
113 110
114 // Whether or not the UMA opt-in option should be shown. 111 // Whether or not the UMA opt-in option should be shown.
115 bool offer_uma_optin_; 112 bool offer_uma_optin_;
116 113
117 // Whether or not a navigation has started on current tab. 114 // Whether or not the first navigation was ignored. This is needed because the
118 bool started_navigation_; 115 // bubble shouldn't go away when the new tab page loads after a crash.
116 bool first_navigation_ignored_;
119 117
120 // Whether or not the user chose to restore previous session. It is used to 118 // Whether or not the user chose to restore previous session. It is used to
121 // collect bubble usage stats. 119 // collect bubble usage stats.
122 bool restored_; 120 bool restored_;
123 121
124 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); 122 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView);
125 }; 123 };
126 124
127 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ 125 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/session_crashed_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698