| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 void TabContentsObserver::DidFailProvisionalLoad( | 52 void TabContentsObserver::DidFailProvisionalLoad( |
| 53 int64 frame_id, | 53 int64 frame_id, |
| 54 bool is_main_frame, | 54 bool is_main_frame, |
| 55 const GURL& validated_url, | 55 const GURL& validated_url, |
| 56 int error_code, | 56 int error_code, |
| 57 const string16& error_description) { | 57 const string16& error_description) { |
| 58 } | 58 } |
| 59 | 59 |
| 60 void TabContentsObserver::DocumentAvailableInMainFrame() { |
| 61 } |
| 62 |
| 60 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { | 63 void TabContentsObserver::DocumentLoadedInFrame(int64 frame_id) { |
| 61 } | 64 } |
| 62 | 65 |
| 63 void TabContentsObserver::DidFinishLoad(int64 frame_id) { | 66 void TabContentsObserver::DidFinishLoad(int64 frame_id) { |
| 64 } | 67 } |
| 65 | 68 |
| 66 void TabContentsObserver::DidGetUserGesture() { | 69 void TabContentsObserver::DidGetUserGesture() { |
| 67 } | 70 } |
| 68 | 71 |
| 69 void TabContentsObserver::DidGetIgnoredUIEvent() { | 72 void TabContentsObserver::DidGetIgnoredUIEvent() { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 153 } |
| 151 | 154 |
| 152 void TabContentsObserver::TabContentsDestroyed() { | 155 void TabContentsObserver::TabContentsDestroyed() { |
| 153 // Do cleanup so that 'this' can safely be deleted from | 156 // Do cleanup so that 'this' can safely be deleted from |
| 154 // TabContentsDestroyed. | 157 // TabContentsDestroyed. |
| 155 tab_contents_->RemoveObserver(this); | 158 tab_contents_->RemoveObserver(this); |
| 156 TabContents* tab = tab_contents_; | 159 TabContents* tab = tab_contents_; |
| 157 tab_contents_ = NULL; | 160 tab_contents_ = NULL; |
| 158 TabContentsDestroyed(tab); | 161 TabContentsDestroyed(tab); |
| 159 } | 162 } |
| OLD | NEW |