OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/browser/tab_contents/tab_contents_observer.h" | 5 #include "content/browser/tab_contents/tab_contents_observer.h" |
6 | 6 |
7 #include "content/browser/renderer_host/render_view_host.h" | 7 #include "content/browser/renderer_host/render_view_host.h" |
8 #include "content/browser/tab_contents/navigation_details.h" | 8 #include "content/browser/tab_contents/navigation_details.h" |
9 #include "content/browser/tab_contents/tab_contents.h" | 9 #include "content/browser/tab_contents/tab_contents.h" |
10 | 10 |
11 void TabContentsObserver::RenderViewCreated(RenderViewHost* render_view_host) { | 11 void TabContentsObserver::RenderViewCreated(RenderViewHost* render_view_host) { |
12 } | 12 } |
13 | 13 |
14 void TabContentsObserver::RenderViewDeleted(RenderViewHost* render_view_host) { | 14 void TabContentsObserver::RenderViewDeleted(RenderViewHost* render_view_host) { |
15 } | 15 } |
16 | 16 |
17 void TabContentsObserver::RenderViewReady() { | 17 void TabContentsObserver::RenderViewReady() { |
18 } | 18 } |
19 | 19 |
20 void TabContentsObserver::RenderViewGone() { | 20 void TabContentsObserver::RenderViewGone(base::TerminationStatus status) { |
21 } | 21 } |
22 | 22 |
23 void TabContentsObserver::NavigateToPendingEntry( | 23 void TabContentsObserver::NavigateToPendingEntry( |
24 const GURL& url, | 24 const GURL& url, |
25 NavigationController::ReloadType reload_type) { | 25 NavigationController::ReloadType reload_type) { |
26 } | 26 } |
27 | 27 |
28 void TabContentsObserver::DidNavigateMainFrame( | 28 void TabContentsObserver::DidNavigateMainFrame( |
29 const content::LoadCommittedDetails& details, | 29 const content::LoadCommittedDetails& details, |
30 const ViewHostMsg_FrameNavigate_Params& params) { | 30 const ViewHostMsg_FrameNavigate_Params& params) { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 void TabContentsObserver::TabContentsDestroyed() { | 155 void TabContentsObserver::TabContentsDestroyed() { |
156 // Do cleanup so that 'this' can safely be deleted from | 156 // Do cleanup so that 'this' can safely be deleted from |
157 // TabContentsDestroyed. | 157 // TabContentsDestroyed. |
158 tab_contents_->RemoveObserver(this); | 158 tab_contents_->RemoveObserver(this); |
159 TabContents* tab = tab_contents_; | 159 TabContents* tab = tab_contents_; |
160 tab_contents_ = NULL; | 160 tab_contents_ = NULL; |
161 TabContentsDestroyed(tab); | 161 TabContentsDestroyed(tab); |
162 } | 162 } |
OLD | NEW |