| 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 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 // factory callback. | 1885 // factory callback. |
| 1886 GetServiceRegistry()->AddService<mojom::WakeLockService>( | 1886 GetServiceRegistry()->AddService<mojom::WakeLockService>( |
| 1887 base::Bind(&WakeLockServiceContext::CreateService, | 1887 base::Bind(&WakeLockServiceContext::CreateService, |
| 1888 base::Unretained(wake_lock_service_context), | 1888 base::Unretained(wake_lock_service_context), |
| 1889 GetProcess()->GetID(), GetRoutingID())); | 1889 GetProcess()->GetID(), GetRoutingID())); |
| 1890 } | 1890 } |
| 1891 | 1891 |
| 1892 if (!permission_service_context_) | 1892 if (!permission_service_context_) |
| 1893 permission_service_context_.reset(new PermissionServiceContext(this)); | 1893 permission_service_context_.reset(new PermissionServiceContext(this)); |
| 1894 | 1894 |
| 1895 GetServiceRegistry()->AddService<mojom::PermissionService>( | 1895 GetServiceRegistry()->AddService( |
| 1896 base::Bind(&PermissionServiceContext::CreateService, | 1896 base::Bind(&PermissionServiceContext::CreateService, |
| 1897 base::Unretained(permission_service_context_.get()))); | 1897 base::Unretained(permission_service_context_.get()))); |
| 1898 | 1898 |
| 1899 GetServiceRegistry()->AddService(base::Bind( | 1899 GetServiceRegistry()->AddService(base::Bind( |
| 1900 &PresentationServiceImpl::CreateMojoService, base::Unretained(this))); | 1900 &PresentationServiceImpl::CreateMojoService, base::Unretained(this))); |
| 1901 | 1901 |
| 1902 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1902 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1903 switches::kEnableWebBluetooth)) { | 1903 switches::kEnableWebBluetooth)) { |
| 1904 GetServiceRegistry()->AddService( | 1904 GetServiceRegistry()->AddService( |
| 1905 base::Bind(&RenderFrameHostImpl::CreateWebBluetoothService, | 1905 base::Bind(&RenderFrameHostImpl::CreateWebBluetoothService, |
| (...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2746 } | 2746 } |
| 2747 | 2747 |
| 2748 void RenderFrameHostImpl::CreateWebBluetoothService( | 2748 void RenderFrameHostImpl::CreateWebBluetoothService( |
| 2749 blink::mojom::WebBluetoothServiceRequest request) { | 2749 blink::mojom::WebBluetoothServiceRequest request) { |
| 2750 DCHECK(!web_bluetooth_service_); | 2750 DCHECK(!web_bluetooth_service_); |
| 2751 web_bluetooth_service_.reset( | 2751 web_bluetooth_service_.reset( |
| 2752 new WebBluetoothServiceImpl(this, std::move(request))); | 2752 new WebBluetoothServiceImpl(this, std::move(request))); |
| 2753 } | 2753 } |
| 2754 | 2754 |
| 2755 } // namespace content | 2755 } // namespace content |
| OLD | NEW |