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

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

Issue 2494733002: Reland of mojo VR interface simpified. (Closed)
Patch Set: Fix Werror Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 2234
2235 // This is to support usage of WebSockets in cases in which there is an 2235 // This is to support usage of WebSockets in cases in which there is an
2236 // associated RenderFrame. This is important for showing the correct security 2236 // associated RenderFrame. This is important for showing the correct security
2237 // state of the page and also honoring user override of bad certificates. 2237 // state of the page and also honoring user override of bad certificates.
2238 GetInterfaceRegistry()->AddInterface( 2238 GetInterfaceRegistry()->AddInterface(
2239 base::Bind(&WebSocketManager::CreateWebSocket, 2239 base::Bind(&WebSocketManager::CreateWebSocket,
2240 process_->GetID(), 2240 process_->GetID(),
2241 routing_id_)); 2241 routing_id_));
2242 2242
2243 #if defined(ENABLE_WEBVR) 2243 #if defined(ENABLE_WEBVR)
2244 GetInterfaceRegistry()->AddInterface<device::VRService>( 2244 GetInterfaceRegistry()->AddInterface<device::mojom::VRService>(
2245 base::Bind(&device::VRServiceImpl::BindRequest)); 2245 base::Bind(&device::VRServiceImpl::BindRequest));
2246 #endif 2246 #endif
2247 if (base::FeatureList::IsEnabled(features::kGenericSensor)) { 2247 if (base::FeatureList::IsEnabled(features::kGenericSensor)) {
2248 GetInterfaceRegistry()->AddInterface( 2248 GetInterfaceRegistry()->AddInterface(
2249 base::Bind(&device::SensorProviderImpl::Create, 2249 base::Bind(&device::SensorProviderImpl::Create,
2250 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)), 2250 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)),
2251 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 2251 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
2252 } 2252 }
2253 2253
2254 #if defined(ENABLE_WEBRTC) 2254 #if defined(ENABLE_WEBRTC)
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
3204 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3204 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3205 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3205 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3206 return web_bluetooth_service_.get(); 3206 return web_bluetooth_service_.get();
3207 } 3207 }
3208 3208
3209 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3209 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3210 web_bluetooth_service_.reset(); 3210 web_bluetooth_service_.reset();
3211 } 3211 }
3212 3212
3213 } // namespace content 3213 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/app/mojo/content_browser_manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698