| 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 27 matching lines...) Expand all Loading... |
| 38 const ViewHostMsg_FrameNavigate_Params& params) { | 38 const ViewHostMsg_FrameNavigate_Params& params) { |
| 39 } | 39 } |
| 40 | 40 |
| 41 void TabContentsObserver::DidStartProvisionalLoadForFrame( | 41 void TabContentsObserver::DidStartProvisionalLoadForFrame( |
| 42 int64 frame_id, | 42 int64 frame_id, |
| 43 bool is_main_frame, | 43 bool is_main_frame, |
| 44 const GURL& validated_url, | 44 const GURL& validated_url, |
| 45 bool is_error_page) { | 45 bool is_error_page) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void TabContentsObserver::ProvisionalChangeToMainFrameUrl(const GURL& url) { | 48 void TabContentsObserver::ProvisionalChangeToMainFrameUrl( |
| 49 const GURL& url, |
| 50 bool has_opener_set) { |
| 49 } | 51 } |
| 50 | 52 |
| 51 void TabContentsObserver::DidCommitProvisionalLoadForFrame( | 53 void TabContentsObserver::DidCommitProvisionalLoadForFrame( |
| 52 int64 frame_id, | 54 int64 frame_id, |
| 53 bool is_main_frame, | 55 bool is_main_frame, |
| 54 const GURL& url, | 56 const GURL& url, |
| 55 PageTransition::Type transition_type) { | 57 PageTransition::Type transition_type) { |
| 56 } | 58 } |
| 57 | 59 |
| 58 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id, | 60 void TabContentsObserver::DidFailProvisionalLoad(int64 frame_id, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 131 } |
| 130 | 132 |
| 131 void TabContentsObserver::TabContentsDestroyed() { | 133 void TabContentsObserver::TabContentsDestroyed() { |
| 132 // Do cleanup so that 'this' can safely be deleted from | 134 // Do cleanup so that 'this' can safely be deleted from |
| 133 // TabContentsDestroyed. | 135 // TabContentsDestroyed. |
| 134 tab_contents_->RemoveObserver(this); | 136 tab_contents_->RemoveObserver(this); |
| 135 TabContents* tab = tab_contents_; | 137 TabContents* tab = tab_contents_; |
| 136 tab_contents_ = NULL; | 138 tab_contents_ = NULL; |
| 137 TabContentsDestroyed(tab); | 139 TabContentsDestroyed(tab); |
| 138 } | 140 } |
| OLD | NEW |