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 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2721 is_loading_ = false; | 2721 is_loading_ = false; |
2722 else | 2722 else |
2723 OnDidStopLoading(); | 2723 OnDidStopLoading(); |
2724 } | 2724 } |
2725 } | 2725 } |
2726 | 2726 |
2727 void RenderFrameHostImpl::SuppressFurtherDialogs() { | 2727 void RenderFrameHostImpl::SuppressFurtherDialogs() { |
2728 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); | 2728 Send(new FrameMsg_SuppressFurtherDialogs(GetRoutingID())); |
2729 } | 2729 } |
2730 | 2730 |
2731 void RenderFrameHostImpl::SetHasReceivedUserGesture() { | |
2732 Send(new FrameMsg_SetHasReceivedUserGesture(GetRoutingID())); | |
nasko
2016/10/26 22:17:23
nit: It might not be worthwhile adding an explicit
| |
2733 } | |
2734 | |
2731 bool RenderFrameHostImpl::IsSameSiteInstance( | 2735 bool RenderFrameHostImpl::IsSameSiteInstance( |
2732 RenderFrameHostImpl* other_render_frame_host) { | 2736 RenderFrameHostImpl* other_render_frame_host) { |
2733 // As a sanity check, make sure the frame belongs to the same BrowserContext. | 2737 // As a sanity check, make sure the frame belongs to the same BrowserContext. |
2734 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), | 2738 CHECK_EQ(GetSiteInstance()->GetBrowserContext(), |
2735 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); | 2739 other_render_frame_host->GetSiteInstance()->GetBrowserContext()); |
2736 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); | 2740 return GetSiteInstance() == other_render_frame_host->GetSiteInstance(); |
2737 } | 2741 } |
2738 | 2742 |
2739 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { | 2743 void RenderFrameHostImpl::SetAccessibilityMode(AccessibilityMode mode) { |
2740 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); | 2744 Send(new FrameMsg_SetAccessibilityMode(routing_id_, mode)); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3138 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 3142 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
3139 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 3143 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
3140 return web_bluetooth_service_.get(); | 3144 return web_bluetooth_service_.get(); |
3141 } | 3145 } |
3142 | 3146 |
3143 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 3147 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
3144 web_bluetooth_service_.reset(); | 3148 web_bluetooth_service_.reset(); |
3145 } | 3149 } |
3146 | 3150 |
3147 } // namespace content | 3151 } // namespace content |
OLD | NEW |