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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 625
626 void RenderViewHostImpl::SetWebUIProperty(const std::string& name, 626 void RenderViewHostImpl::SetWebUIProperty(const std::string& name,
627 const std::string& value) { 627 const std::string& value) {
628 // This is a sanity check before telling the renderer to enable the property. 628 // This is a sanity check before telling the renderer to enable the property.
629 // It could lie and send the corresponding IPC messages anyway, but we will 629 // It could lie and send the corresponding IPC messages anyway, but we will
630 // not act on them if enabled_bindings_ doesn't agree. If we get here without 630 // not act on them if enabled_bindings_ doesn't agree. If we get here without
631 // WebUI bindings, kill the renderer process. 631 // WebUI bindings, kill the renderer process.
632 if (GetMainFrame()->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI) { 632 if (GetMainFrame()->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI) {
633 Send(new ViewMsg_SetWebUIProperty(GetRoutingID(), name, value)); 633 Send(new ViewMsg_SetWebUIProperty(GetRoutingID(), name, value));
634 } else { 634 } else {
635 RecordAction( 635 base::RecordAction(
636 base::UserMetricsAction("BindingsMismatchTerminate_RVH_WebUI")); 636 base::UserMetricsAction("BindingsMismatchTerminate_RVH_WebUI"));
637 GetProcess()->Shutdown(content::RESULT_CODE_KILLED, false); 637 GetProcess()->Shutdown(content::RESULT_CODE_KILLED, false);
638 } 638 }
639 } 639 }
640 640
641 void RenderViewHostImpl::RenderWidgetGotFocus() { 641 void RenderViewHostImpl::RenderWidgetGotFocus() {
642 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 642 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
643 if (view) 643 if (view)
644 view->GotFocus(); 644 view->GotFocus();
645 } 645 }
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 } 941 }
942 942
943 void RenderViewHostImpl::ClosePageTimeout() { 943 void RenderViewHostImpl::ClosePageTimeout() {
944 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) 944 if (delegate_->ShouldIgnoreUnresponsiveRenderer())
945 return; 945 return;
946 946
947 ClosePageIgnoringUnloadEvents(); 947 ClosePageIgnoringUnloadEvents();
948 } 948 }
949 949
950 } // namespace content 950 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698