Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 1512007: Disallow display of multiple experimental.extension.popup(...) windows (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 IPC_MESSAGE_HANDLER(ViewHostMsg_Thumbnail, OnMsgThumbnail) 716 IPC_MESSAGE_HANDLER(ViewHostMsg_Thumbnail, OnMsgThumbnail)
717 IPC_MESSAGE_HANDLER(ViewHostMsg_Snapshot, OnMsgScreenshot) 717 IPC_MESSAGE_HANDLER(ViewHostMsg_Snapshot, OnMsgScreenshot)
718 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSettings, 718 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateInspectorSettings,
719 OnUpdateInspectorSettings); 719 OnUpdateInspectorSettings);
720 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose) 720 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnMsgClose)
721 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove) 721 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnMsgRequestMove)
722 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading) 722 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartLoading, OnMsgDidStartLoading)
723 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading) 723 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStopLoading, OnMsgDidStopLoading)
724 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, 724 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame,
725 OnMsgDocumentAvailableInMainFrame) 725 OnMsgDocumentAvailableInMainFrame)
726 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame,
727 OnMsgDocumentOnLoadCompletedInMainFrame)
726 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, 728 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache,
727 OnMsgDidLoadResourceFromMemoryCache) 729 OnMsgDidLoadResourceFromMemoryCache)
728 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, 730 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent,
729 OnMsgDidDisplayInsecureContent) 731 OnMsgDidDisplayInsecureContent)
730 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, 732 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent,
731 OnMsgDidRunInsecureContent) 733 OnMsgDidRunInsecureContent)
732 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRedirectProvisionalLoad, 734 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRedirectProvisionalLoad,
733 OnMsgDidRedirectProvisionalLoad) 735 OnMsgDidRedirectProvisionalLoad)
734 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame, 736 IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame,
735 OnMsgDidStartProvisionalLoadForFrame) 737 OnMsgDidStartProvisionalLoadForFrame)
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 } 1046 }
1045 1047
1046 void RenderViewHost::OnMsgDidStopLoading() { 1048 void RenderViewHost::OnMsgDidStopLoading() {
1047 delegate_->DidStopLoading(); 1049 delegate_->DidStopLoading();
1048 } 1050 }
1049 1051
1050 void RenderViewHost::OnMsgDocumentAvailableInMainFrame() { 1052 void RenderViewHost::OnMsgDocumentAvailableInMainFrame() {
1051 delegate_->DocumentAvailableInMainFrame(this); 1053 delegate_->DocumentAvailableInMainFrame(this);
1052 } 1054 }
1053 1055
1056 void RenderViewHost::OnMsgDocumentOnLoadCompletedInMainFrame() {
1057 delegate_->DocumentOnLoadCompletedInMainFrame(this);
1058 }
1059
1054 void RenderViewHost::OnMsgDidLoadResourceFromMemoryCache( 1060 void RenderViewHost::OnMsgDidLoadResourceFromMemoryCache(
1055 const GURL& url, 1061 const GURL& url,
1056 const std::string& frame_origin, 1062 const std::string& frame_origin,
1057 const std::string& main_frame_origin, 1063 const std::string& main_frame_origin,
1058 const std::string& security_info) { 1064 const std::string& security_info) {
1059 static StatsCounter cache("WebKit.CacheHit"); 1065 static StatsCounter cache("WebKit.CacheHit");
1060 cache.Increment(); 1066 cache.Increment();
1061 1067
1062 RenderViewHostDelegate::Resource* resource_delegate = 1068 RenderViewHostDelegate::Resource* resource_delegate =
1063 delegate_->GetResourceDelegate(); 1069 delegate_->GetResourceDelegate();
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 integration_delegate->OnPageTranslated(page_id, original_lang, 1873 integration_delegate->OnPageTranslated(page_id, original_lang,
1868 translated_lang, error_type); 1874 translated_lang, error_type);
1869 } 1875 }
1870 1876
1871 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { 1877 void RenderViewHost::OnContentBlocked(ContentSettingsType type) {
1872 RenderViewHostDelegate::Resource* resource_delegate = 1878 RenderViewHostDelegate::Resource* resource_delegate =
1873 delegate_->GetResourceDelegate(); 1879 delegate_->GetResourceDelegate();
1874 if (resource_delegate) 1880 if (resource_delegate)
1875 resource_delegate->OnContentBlocked(type); 1881 resource_delegate->OnContentBlocked(type);
1876 } 1882 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698