| 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) { |
| 15 } |
| 16 |
| 14 void TabContentsObserver::NavigateToPendingEntry( | 17 void TabContentsObserver::NavigateToPendingEntry( |
| 15 const GURL& url, | 18 const GURL& url, |
| 16 NavigationController::ReloadType reload_type) { | 19 NavigationController::ReloadType reload_type) { |
| 17 } | 20 } |
| 18 | 21 |
| 19 void TabContentsObserver::DidNavigateMainFramePostCommit( | 22 void TabContentsObserver::DidNavigateMainFramePostCommit( |
| 20 const content::LoadCommittedDetails& details, | 23 const content::LoadCommittedDetails& details, |
| 21 const ViewHostMsg_FrameNavigate_Params& params) { | 24 const ViewHostMsg_FrameNavigate_Params& params) { |
| 22 } | 25 } |
| 23 | 26 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 151 } |
| 149 | 152 |
| 150 void TabContentsObserver::TabContentsDestroyed() { | 153 void TabContentsObserver::TabContentsDestroyed() { |
| 151 // Do cleanup so that 'this' can safely be deleted from | 154 // Do cleanup so that 'this' can safely be deleted from |
| 152 // TabContentsDestroyed. | 155 // TabContentsDestroyed. |
| 153 tab_contents_->RemoveObserver(this); | 156 tab_contents_->RemoveObserver(this); |
| 154 TabContents* tab = tab_contents_; | 157 TabContents* tab = tab_contents_; |
| 155 tab_contents_ = NULL; | 158 tab_contents_ = NULL; |
| 156 TabContentsDestroyed(tab); | 159 TabContentsDestroyed(tab); |
| 157 } | 160 } |
| OLD | NEW |