| 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/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 IPC_MESSAGE_HANDLER(ViewHostMsg_Thumbnail, OnMsgThumbnail) | 720 IPC_MESSAGE_HANDLER(ViewHostMsg_Thumbnail, OnMsgThumbnail) |
| 721 IPC_MESSAGE_HANDLER(ViewHostMsg_Snapshot, OnMsgScreenshot) | 721 IPC_MESSAGE_HANDLER(ViewHostMsg_Snapshot, OnMsgScreenshot) |
| 722 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSettings, | 722 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSettings, |
| 723 OnUpdateInspectorSettings); | 723 OnUpdateInspectorSettings); |
| 724 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) | 724 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) |
| 725 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) | 725 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) |
| 726 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading) | 726 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading) |
| 727 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading) | 727 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading) |
| 728 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, | 728 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, |
| 729 OnMsgDocumentAvailableInMainFrame) | 729 OnMsgDocumentAvailableInMainFrame) |
| 730 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, |
| 731 OnMsgDocumentOnLoadCompletedInMainFrame) |
| 730 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, | 732 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, |
| 731 OnMsgDidLoadResourceFromMemoryCache) | 733 OnMsgDidLoadResourceFromMemoryCache) |
| 732 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, | 734 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, |
| 733 OnMsgDidDisplayInsecureContent) | 735 OnMsgDidDisplayInsecureContent) |
| 734 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, | 736 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, |
| 735 OnMsgDidRunInsecureContent) | 737 OnMsgDidRunInsecureContent) |
| 736 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRedirectProvisionalLoad, | 738 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRedirectProvisionalLoad, |
| 737 OnMsgDidRedirectProvisionalLoad) | 739 OnMsgDidRedirectProvisionalLoad) |
| 738 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame, | 740 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame, |
| 739 OnMsgDidStartProvisionalLoadForFrame) | 741 OnMsgDidStartProvisionalLoadForFrame) |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1051 } |
| 1050 | 1052 |
| 1051 void RenderViewHost::OnMsgDidStopLoading() { | 1053 void RenderViewHost::OnMsgDidStopLoading() { |
| 1052 delegate_->DidStopLoading(); | 1054 delegate_->DidStopLoading(); |
| 1053 } | 1055 } |
| 1054 | 1056 |
| 1055 void RenderViewHost::OnMsgDocumentAvailableInMainFrame() { | 1057 void RenderViewHost::OnMsgDocumentAvailableInMainFrame() { |
| 1056 delegate_->DocumentAvailableInMainFrame(this); | 1058 delegate_->DocumentAvailableInMainFrame(this); |
| 1057 } | 1059 } |
| 1058 | 1060 |
| 1061 void RenderViewHost::OnMsgDocumentOnLoadCompletedInMainFrame() { |
| 1062 delegate_->DocumentOnLoadCompletedInMainFrame(this); |
| 1063 } |
| 1064 |
| 1059 void RenderViewHost::OnMsgDidLoadResourceFromMemoryCache( | 1065 void RenderViewHost::OnMsgDidLoadResourceFromMemoryCache( |
| 1060 const GURL& url, | 1066 const GURL& url, |
| 1061 const std::string& frame_origin, | 1067 const std::string& frame_origin, |
| 1062 const std::string& main_frame_origin, | 1068 const std::string& main_frame_origin, |
| 1063 const std::string& security_info) { | 1069 const std::string& security_info) { |
| 1064 static StatsCounter cache("WebKit.CacheHit"); | 1070 static StatsCounter cache("WebKit.CacheHit"); |
| 1065 cache.Increment(); | 1071 cache.Increment(); |
| 1066 | 1072 |
| 1067 RenderViewHostDelegate::Resource* resource_delegate = | 1073 RenderViewHostDelegate::Resource* resource_delegate = |
| 1068 delegate_->GetResourceDelegate(); | 1074 delegate_->GetResourceDelegate(); |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 integration_delegate->OnPageTranslated(page_id, original_lang, | 1876 integration_delegate->OnPageTranslated(page_id, original_lang, |
| 1871 translated_lang, error_type); | 1877 translated_lang, error_type); |
| 1872 } | 1878 } |
| 1873 | 1879 |
| 1874 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { | 1880 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { |
| 1875 RenderViewHostDelegate::Resource* resource_delegate = | 1881 RenderViewHostDelegate::Resource* resource_delegate = |
| 1876 delegate_->GetResourceDelegate(); | 1882 delegate_->GetResourceDelegate(); |
| 1877 if (resource_delegate) | 1883 if (resource_delegate) |
| 1878 resource_delegate->OnContentBlocked(type); | 1884 resource_delegate->OnContentBlocked(type); |
| 1879 } | 1885 } |
| OLD | NEW |