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 |
73 void TabContentsObserver::DidStartLoading() { | 76 void TabContentsObserver::DidStartLoading() { |
74 } | 77 } |
75 | 78 |
76 void TabContentsObserver::DidStopLoading() { | 79 void TabContentsObserver::DidStopLoading() { |
77 } | 80 } |
78 | 81 |
79 void TabContentsObserver::RenderViewGone() { | 82 void TabContentsObserver::RenderViewGone() { |
80 } | 83 } |
81 | 84 |
82 void TabContentsObserver::StopNavigation() { | 85 void TabContentsObserver::StopNavigation() { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 135 } |
133 | 136 |
134 void TabContentsObserver::TabContentsDestroyed() { | 137 void TabContentsObserver::TabContentsDestroyed() { |
135 // Do cleanup so that 'this' can safely be deleted from | 138 // Do cleanup so that 'this' can safely be deleted from |
136 // TabContentsDestroyed. | 139 // TabContentsDestroyed. |
137 tab_contents_->RemoveObserver(this); | 140 tab_contents_->RemoveObserver(this); |
138 TabContents* tab = tab_contents_; | 141 TabContents* tab = tab_contents_; |
139 tab_contents_ = NULL; | 142 tab_contents_ = NULL; |
140 TabContentsDestroyed(tab); | 143 TabContentsDestroyed(tab); |
141 } | 144 } |
OLD | NEW |