OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
(...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 } | 2248 } |
2249 | 2249 |
2250 void TabContents::DocumentLoadedInFrame(long long frame_id) { | 2250 void TabContents::DocumentLoadedInFrame(long long frame_id) { |
2251 controller_.DocumentLoadedInFrame(); | 2251 controller_.DocumentLoadedInFrame(); |
2252 NotificationService::current()->Notify( | 2252 NotificationService::current()->Notify( |
2253 NotificationType::FRAME_DOM_CONTENT_LOADED, | 2253 NotificationType::FRAME_DOM_CONTENT_LOADED, |
2254 Source<NavigationController>(&controller_), | 2254 Source<NavigationController>(&controller_), |
2255 Details<long long>(&frame_id)); | 2255 Details<long long>(&frame_id)); |
2256 } | 2256 } |
2257 | 2257 |
| 2258 void TabContents::DidFinishLoad(long long frame_id) { |
| 2259 NotificationService::current()->Notify( |
| 2260 NotificationType::FRAME_DID_FINISH_LOAD, |
| 2261 Source<NavigationController>(&controller_), |
| 2262 Details<long long>(&frame_id)); |
| 2263 } |
| 2264 |
2258 void TabContents::OnContentSettingsAccessed(bool content_was_blocked) { | 2265 void TabContents::OnContentSettingsAccessed(bool content_was_blocked) { |
2259 if (delegate_) | 2266 if (delegate_) |
2260 delegate_->OnContentSettingsChange(this); | 2267 delegate_->OnContentSettingsChange(this); |
2261 } | 2268 } |
2262 | 2269 |
2263 RenderViewHostDelegate::View* TabContents::GetViewDelegate() { | 2270 RenderViewHostDelegate::View* TabContents::GetViewDelegate() { |
2264 return view_.get(); | 2271 return view_.get(); |
2265 } | 2272 } |
2266 | 2273 |
2267 RenderViewHostDelegate::RendererManagement* | 2274 RenderViewHostDelegate::RendererManagement* |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3325 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3332 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
3326 } | 3333 } |
3327 | 3334 |
3328 Profile* TabContents::GetProfileForPasswordManager() { | 3335 Profile* TabContents::GetProfileForPasswordManager() { |
3329 return profile(); | 3336 return profile(); |
3330 } | 3337 } |
3331 | 3338 |
3332 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3339 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
3333 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3340 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
3334 } | 3341 } |
OLD | NEW |