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