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 "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 1728 matching lines...) Loading... |
1739 Source<NavigationController>(&controller_), | 1739 Source<NavigationController>(&controller_), |
1740 Details<LoadFromMemoryCacheDetails>(&details)); | 1740 Details<LoadFromMemoryCacheDetails>(&details)); |
1741 } | 1741 } |
1742 | 1742 |
1743 void TabContents::OnDidDisplayInsecureContent() { | 1743 void TabContents::OnDidDisplayInsecureContent() { |
1744 displayed_insecure_content_ = true; | 1744 displayed_insecure_content_ = true; |
1745 SSLManager::NotifySSLInternalStateChanged(); | 1745 SSLManager::NotifySSLInternalStateChanged(); |
1746 } | 1746 } |
1747 | 1747 |
1748 void TabContents::OnDidRunInsecureContent( | 1748 void TabContents::OnDidRunInsecureContent( |
1749 const std::string& security_origin) { | 1749 const std::string& security_origin, const std::string& target_url) { |
1750 controller_.ssl_manager()->DidRunInsecureContent(security_origin); | 1750 controller_.ssl_manager()->DidRunInsecureContent(security_origin); |
1751 } | 1751 } |
1752 | 1752 |
1753 void TabContents::OnDocumentLoadedInFrame(int64 frame_id) { | 1753 void TabContents::OnDocumentLoadedInFrame(int64 frame_id) { |
1754 controller_.DocumentLoadedInFrame(); | 1754 controller_.DocumentLoadedInFrame(); |
1755 NotificationService::current()->Notify( | 1755 NotificationService::current()->Notify( |
1756 NotificationType::FRAME_DOM_CONTENT_LOADED, | 1756 NotificationType::FRAME_DOM_CONTENT_LOADED, |
1757 Source<NavigationController>(&controller_), | 1757 Source<NavigationController>(&controller_), |
1758 Details<int64>(&frame_id)); | 1758 Details<int64>(&frame_id)); |
1759 } | 1759 } |
(...skipping 1618 matching lines...) Loading... |
3378 } | 3378 } |
3379 | 3379 |
3380 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | 3380 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { |
3381 render_manager_.SwapInRenderViewHost(rvh); | 3381 render_manager_.SwapInRenderViewHost(rvh); |
3382 } | 3382 } |
3383 | 3383 |
3384 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 3384 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
3385 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 3385 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
3386 rwh_view->SetSize(view()->GetContainerSize()); | 3386 rwh_view->SetSize(view()->GetContainerSize()); |
3387 } | 3387 } |
OLD | NEW |