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