| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const GURL& validated_url, | 62 const GURL& validated_url, |
| 63 int error_code) { | 63 int error_code) { |
| 64 } | 64 } |
| 65 | 65 |
| 66 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { | 66 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { |
| 67 } | 67 } |
| 68 | 68 |
| 69 void TabContentsObserver::DidFinishLoad(int64 frame_id) { | 69 void TabContentsObserver::DidFinishLoad(int64 frame_id) { |
| 70 } | 70 } |
| 71 | 71 |
| 72 void TabContentsObserver::DidGetUserGesture() { |
| 73 } |
| 74 |
| 72 void TabContentsObserver::DidStartLoading() { | 75 void TabContentsObserver::DidStartLoading() { |
| 73 } | 76 } |
| 74 | 77 |
| 75 void TabContentsObserver::DidStopLoading() { | 78 void TabContentsObserver::DidStopLoading() { |
| 76 } | 79 } |
| 77 | 80 |
| 78 void TabContentsObserver::RenderViewGone() { | 81 void TabContentsObserver::RenderViewGone() { |
| 79 } | 82 } |
| 80 | 83 |
| 81 void TabContentsObserver::StopNavigation() { | 84 void TabContentsObserver::StopNavigation() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 134 } |
| 132 | 135 |
| 133 void TabContentsObserver::TabContentsDestroyed() { | 136 void TabContentsObserver::TabContentsDestroyed() { |
| 134 // Do cleanup so that 'this' can safely be deleted from | 137 // Do cleanup so that 'this' can safely be deleted from |
| 135 // TabContentsDestroyed. | 138 // TabContentsDestroyed. |
| 136 tab_contents_->RemoveObserver(this); | 139 tab_contents_->RemoveObserver(this); |
| 137 TabContents* tab = tab_contents_; | 140 TabContents* tab = tab_contents_; |
| 138 tab_contents_ = NULL; | 141 tab_contents_ = NULL; |
| 139 TabContentsDestroyed(tab); | 142 TabContentsDestroyed(tab); |
| 140 } | 143 } |
| OLD | NEW |