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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RenderViewHostTest Created 4 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 if (!callback.is_null()) { 439 if (!callback.is_null()) {
440 request_reply = true; 440 request_reply = true;
441 key = g_next_javascript_callback_id++; 441 key = g_next_javascript_callback_id++;
442 javascript_callbacks_.insert(std::make_pair(key, callback)); 442 javascript_callbacks_.insert(std::make_pair(key, callback));
443 } 443 }
444 444
445 Send(new FrameMsg_JavaScriptExecuteRequestInIsolatedWorld( 445 Send(new FrameMsg_JavaScriptExecuteRequestInIsolatedWorld(
446 routing_id_, javascript, key, request_reply, world_id)); 446 routing_id_, javascript, key, request_reply, world_id));
447 } 447 }
448 448
449 void RenderFrameHostImpl::CopyImageAt(int x, int y) {
450 Send(new FrameMsg_CopyImageAt(routing_id_, x, y));
451 }
452
453 void RenderFrameHostImpl::SaveImageAt(int x, int y) {
454 Send(new FrameMsg_SaveImageAt(routing_id_, x, y));
455 }
456
449 RenderViewHost* RenderFrameHostImpl::GetRenderViewHost() { 457 RenderViewHost* RenderFrameHostImpl::GetRenderViewHost() {
450 return render_view_host_; 458 return render_view_host_;
451 } 459 }
452 460
453 ServiceRegistry* RenderFrameHostImpl::GetServiceRegistry() { 461 ServiceRegistry* RenderFrameHostImpl::GetServiceRegistry() {
454 return service_registry_.get(); 462 return service_registry_.get();
455 } 463 }
456 464
457 blink::WebPageVisibilityState RenderFrameHostImpl::GetVisibilityState() { 465 blink::WebPageVisibilityState RenderFrameHostImpl::GetVisibilityState() {
458 // Works around the crashes seen in https://crbug.com/501863, where the 466 // Works around the crashes seen in https://crbug.com/501863, where the
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 // handler after it's destroyed so it can't run after the RFHI is destroyed. 2866 // handler after it's destroyed so it can't run after the RFHI is destroyed.
2859 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 2867 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
2860 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 2868 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
2861 } 2869 }
2862 2870
2863 void RenderFrameHostImpl::DeleteWebBluetoothService() { 2871 void RenderFrameHostImpl::DeleteWebBluetoothService() {
2864 web_bluetooth_service_.reset(); 2872 web_bluetooth_service_.reset();
2865 } 2873 }
2866 2874
2867 } // namespace content 2875 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698