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