OLD | NEW |
---|---|
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 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2630 is_loading_ = false; | 2630 is_loading_ = false; |
2631 else | 2631 else |
2632 OnDidStopLoading(); | 2632 OnDidStopLoading(); |
2633 } | 2633 } |
2634 } | 2634 } |
2635 | 2635 |
2636 void RenderFrameHostImpl::SuppressFurtherDialogs() { | 2636 void RenderFrameHostImpl::SuppressFurtherDialogs() { |
2637 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); | 2637 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); |
2638 } | 2638 } |
2639 | 2639 |
2640 void RenderFrameHostImpl::SetSSLStatusForPendingNavigate( | |
2641 const GURL& url, const SSLStatus& ssl_status) { | |
2642 pending_navigate_ssl_status_url_ = url; | |
2643 pending_navigate_ssl_status_ = ssl_status; | |
2644 } | |
2645 | |
2646 bool RenderFrameHostImpl::GetSSLStatusForPendingNavigate( | |
2647 const GURL& url, SSLStatus* status) { | |
2648 bool rv = false; | |
2649 if (url == pending_navigate_ssl_status_url_) { | |
2650 *status = pending_navigate_ssl_status_; | |
2651 rv = true; | |
2652 } | |
2653 pending_navigate_ssl_status_url_ = GURL(); | |
nasko
2016/08/15 22:18:22
Why would we not match the URL? I'd rather not ret
jam
2016/08/15 22:57:37
it's the same reason for resource_loader.cc's SetS
| |
2654 pending_navigate_ssl_status_ = SSLStatus(); | |
2655 return rv; | |
2656 } | |
2657 | |
2640 bool RenderFrameHostImpl::IsSameSiteInstance( | 2658 bool RenderFrameHostImpl::IsSameSiteInstance( |
2641 RenderFrameHostImpl* other_render_frame_host) { | 2659 RenderFrameHostImpl* other_render_frame_host) { |
2642 // As a sanity check, make sure the frame belongs to the same BrowserContext. | 2660 // As a sanity check, make sure the frame belongs to the same BrowserContext. |
2643 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), | 2661 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), |
2644 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); | 2662 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); |
2645 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); | 2663 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); |
2646 } | 2664 } |
2647 | 2665 |
2648 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { | 2666 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { |
2649 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); | 2667 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3044 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3062 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
3045 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3063 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
3046 return web_bluetooth_service_.get(); | 3064 return web_bluetooth_service_.get(); |
3047 } | 3065 } |
3048 | 3066 |
3049 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3067 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
3050 web_bluetooth_service_.reset(); | 3068 web_bluetooth_service_.reset(); |
3051 } | 3069 } |
3052 | 3070 |
3053 } // namespace content | 3071 } // namespace content |
OLD | NEW |