| 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 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void TabContentsObserver::DidStartLoading() { | 94 void TabContentsObserver::DidStartLoading() { |
| 95 } | 95 } |
| 96 | 96 |
| 97 void TabContentsObserver::DidStopLoading() { | 97 void TabContentsObserver::DidStopLoading() { |
| 98 } | 98 } |
| 99 | 99 |
| 100 void TabContentsObserver::StopNavigation() { | 100 void TabContentsObserver::StopNavigation() { |
| 101 } | 101 } |
| 102 | 102 |
| 103 void TabContentsObserver::DidOpenURL(const GURL& url, | 103 void TabContentsObserver::DidOpenURL(const GURL& url, |
| 104 const GURL& referrer, | 104 const content::Referrer& referrer, |
| 105 WindowOpenDisposition disposition, | 105 WindowOpenDisposition disposition, |
| 106 content::PageTransition transition) { | 106 content::PageTransition transition) { |
| 107 } | 107 } |
| 108 | 108 |
| 109 void TabContentsObserver::DidOpenRequestedURL( | 109 void TabContentsObserver::DidOpenRequestedURL( |
| 110 TabContents* new_contents, | 110 TabContents* new_contents, |
| 111 const GURL& url, | 111 const GURL& url, |
| 112 const GURL& referrer, | 112 const content::Referrer& referrer, |
| 113 WindowOpenDisposition disposition, | 113 WindowOpenDisposition disposition, |
| 114 content::PageTransition transition, | 114 content::PageTransition transition, |
| 115 int64 source_frame_id) { | 115 int64 source_frame_id) { |
| 116 } | 116 } |
| 117 | 117 |
| 118 void TabContentsObserver::AppCacheAccessed(const GURL& manifest_url, | 118 void TabContentsObserver::AppCacheAccessed(const GURL& manifest_url, |
| 119 bool blocked_by_policy) { | 119 bool blocked_by_policy) { |
| 120 } | 120 } |
| 121 | 121 |
| 122 TabContentsObserver::TabContentsObserver(TabContents* tab_contents) | 122 TabContentsObserver::TabContentsObserver(TabContents* tab_contents) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 166 } |
| 167 | 167 |
| 168 void TabContentsObserver::TabContentsDestroyed() { | 168 void TabContentsObserver::TabContentsDestroyed() { |
| 169 // Do cleanup so that 'this' can safely be deleted from | 169 // Do cleanup so that 'this' can safely be deleted from |
| 170 // TabContentsDestroyed. | 170 // TabContentsDestroyed. |
| 171 tab_contents_->RemoveObserver(this); | 171 tab_contents_->RemoveObserver(this); |
| 172 TabContents* tab = tab_contents_; | 172 TabContents* tab = tab_contents_; |
| 173 tab_contents_ = NULL; | 173 tab_contents_ = NULL; |
| 174 TabContentsDestroyed(tab); | 174 TabContentsDestroyed(tab); |
| 175 } | 175 } |
| OLD | NEW |