| 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/tab_contents.h" | 8 #include "content/browser/tab_contents/tab_contents.h" |
| 9 | 9 |
| 10 TabContentsObserver::Registrar::Registrar(TabContentsObserver* observer) | 10 TabContentsObserver::Registrar::Registrar(TabContentsObserver* observer) |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 void TabContentsObserver::DidStartProvisionalLoadForFrame( | 43 void TabContentsObserver::DidStartProvisionalLoadForFrame( |
| 44 int64 frame_id, | 44 int64 frame_id, |
| 45 bool is_main_frame, | 45 bool is_main_frame, |
| 46 const GURL& validated_url, | 46 const GURL& validated_url, |
| 47 bool is_error_page, | 47 bool is_error_page, |
| 48 RenderViewHost* render_view_host) { | 48 RenderViewHost* render_view_host) { |
| 49 } | 49 } |
| 50 | 50 |
| 51 void TabContentsObserver::ProvisionalChangeToMainFrameUrl(const GURL& url) { | 51 void TabContentsObserver::ProvisionalChangeToMainFrameUrl( |
| 52 const GURL& url, |
| 53 bool has_opener_set) { |
| 52 } | 54 } |
| 53 | 55 |
| 54 void TabContentsObserver::DidCommitProvisionalLoadForFrame( | 56 void TabContentsObserver::DidCommitProvisionalLoadForFrame( |
| 55 int64 frame_id, | 57 int64 frame_id, |
| 56 bool is_main_frame, | 58 bool is_main_frame, |
| 57 const GURL& url, | 59 const GURL& url, |
| 58 PageTransition::Type transition_type) { | 60 PageTransition::Type transition_type) { |
| 59 } | 61 } |
| 60 | 62 |
| 61 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id, | 63 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id, |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 } | 137 } |
| 136 | 138 |
| 137 void TabContentsObserver::TabContentsDestroyed() { | 139 void TabContentsObserver::TabContentsDestroyed() { |
| 138 // Do cleanup so that 'this' can safely be deleted from | 140 // Do cleanup so that 'this' can safely be deleted from |
| 139 // TabContentsDestroyed. | 141 // TabContentsDestroyed. |
| 140 tab_contents_->RemoveObserver(this); | 142 tab_contents_->RemoveObserver(this); |
| 141 TabContents* tab = tab_contents_; | 143 TabContents* tab = tab_contents_; |
| 142 tab_contents_ = NULL; | 144 tab_contents_ = NULL; |
| 143 TabContentsDestroyed(tab); | 145 TabContentsDestroyed(tab); |
| 144 } | 146 } |
| OLD | NEW |