OLD | NEW |
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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const ui::Event& event) OVERRIDE; | 71 const ui::Event& event) OVERRIDE; |
72 | 72 |
73 // views::StyledLabelListener methods. | 73 // views::StyledLabelListener methods. |
74 virtual void StyledLabelLinkClicked(const gfx::Range& range, | 74 virtual void StyledLabelLinkClicked(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 virtual void DidStartNavigationToPendingEntry( | 78 virtual void DidStartNavigationToPendingEntry( |
79 const GURL& url, | 79 const GURL& url, |
80 content::NavigationController::ReloadType reload_type) OVERRIDE; | 80 content::NavigationController::ReloadType reload_type) OVERRIDE; |
81 virtual void DidFinishLoad( | 81 virtual void DidFinishLoad(content::RenderFrameHost* render_frame_host, |
82 int64 frame_id, | 82 const GURL& validated_url) OVERRIDE; |
83 const GURL& validated_url, | |
84 bool is_main_frame, | |
85 content::RenderViewHost* render_view_host) OVERRIDE; | |
86 virtual void WasShown() OVERRIDE; | 83 virtual void WasShown() OVERRIDE; |
87 virtual void WasHidden() OVERRIDE; | 84 virtual void WasHidden() OVERRIDE; |
88 | 85 |
89 // content::NotificationObserver methods. | 86 // content::NotificationObserver methods. |
90 virtual void Observe( | 87 virtual void Observe( |
91 int type, | 88 int type, |
92 const content::NotificationSource& source, | 89 const content::NotificationSource& source, |
93 const content::NotificationDetails& details) OVERRIDE; | 90 const content::NotificationDetails& details) OVERRIDE; |
94 | 91 |
95 // TabStripModelObserver methods. | 92 // TabStripModelObserver methods. |
(...skipping 30 matching lines...) Expand all Loading... |
126 // Whether or not the UMA opt-in option should be shown. | 123 // Whether or not the UMA opt-in option should be shown. |
127 bool offer_uma_optin_; | 124 bool offer_uma_optin_; |
128 | 125 |
129 // Whether or not a navigation has started on current tab. | 126 // Whether or not a navigation has started on current tab. |
130 bool started_navigation_; | 127 bool started_navigation_; |
131 | 128 |
132 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); | 129 DISALLOW_COPY_AND_ASSIGN(SessionCrashedBubbleView); |
133 }; | 130 }; |
134 | 131 |
135 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ | 132 #endif // CHROME_BROWSER_UI_VIEWS_SESSION_CRASHED_BUBBLE_VIEW_H_ |
OLD | NEW |