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

Side by Side Diff: device/vr/vr_service_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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
« no previous file with comments | « device/geolocation/geolocation_service_context.cc ('k') | device/vr/vr_service_impl.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef DEVICE_VR_VR_SERVICE_IMPL_H 5 #ifndef DEVICE_VR_VR_SERVICE_IMPL_H
6 #define DEVICE_VR_VR_SERVICE_IMPL_H 6 #define DEVICE_VR_VR_SERVICE_IMPL_H
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 #include "device/vr/vr_device.h" 12 #include "device/vr/vr_device.h"
13 #include "device/vr/vr_display_impl.h" 13 #include "device/vr/vr_display_impl.h"
14 #include "device/vr/vr_export.h" 14 #include "device/vr/vr_export.h"
15 #include "device/vr/vr_service.mojom.h" 15 #include "device/vr/vr_service.mojom.h"
16 #include "mojo/public/cpp/bindings/binding.h" 16 #include "mojo/public/cpp/bindings/binding.h"
17 17
18 namespace service_manager {
19 struct BindSourceInfo;
20 }
21
18 namespace device { 22 namespace device {
19 23
20 // Browser process representation of a WebVR site session. Instantiated through 24 // Browser process representation of a WebVR site session. Instantiated through
21 // Mojo once the user loads a page containing WebVR. 25 // Mojo once the user loads a page containing WebVR.
22 // It instantiates a VRDisplayImpl for each newly connected VRDisplay and sends 26 // It instantiates a VRDisplayImpl for each newly connected VRDisplay and sends
23 // the display's info to the render process through its connected 27 // the display's info to the render process through its connected
24 // mojom::VRServiceClient. 28 // mojom::VRServiceClient.
25 class VRServiceImpl : public mojom::VRService { 29 class VRServiceImpl : public mojom::VRService {
26 public: 30 public:
27 DEVICE_VR_EXPORT VRServiceImpl(); 31 DEVICE_VR_EXPORT VRServiceImpl();
28 DEVICE_VR_EXPORT ~VRServiceImpl() override; 32 DEVICE_VR_EXPORT ~VRServiceImpl() override;
29 33
30 DEVICE_VR_EXPORT static void Create( 34 DEVICE_VR_EXPORT static void Create(
31 mojo::InterfaceRequest<mojom::VRService> request); 35 const service_manager::BindSourceInfo& source_info,
36 mojom::VRServiceRequest request);
32 37
33 // mojom::VRService implementation 38 // mojom::VRService implementation
34 // Adds this service to the VRDeviceManager. 39 // Adds this service to the VRDeviceManager.
35 void SetClient(mojom::VRServiceClientPtr service_client, 40 void SetClient(mojom::VRServiceClientPtr service_client,
36 const SetClientCallback& callback) override; 41 const SetClientCallback& callback) override;
37 42
38 bool listening_for_activate() { return listening_for_activate_; } 43 bool listening_for_activate() { return listening_for_activate_; }
39 44
40 // Tells the render process that a new VR device is available. 45 // Tells the render process that a new VR device is available.
41 void ConnectDevice(VRDevice* device); 46 void ConnectDevice(VRDevice* device);
(...skipping 18 matching lines...) Expand all
60 65
61 // Getter for testing. 66 // Getter for testing.
62 DEVICE_VR_EXPORT VRDisplayImpl* GetVRDisplayImplForTesting(VRDevice* device); 67 DEVICE_VR_EXPORT VRDisplayImpl* GetVRDisplayImplForTesting(VRDevice* device);
63 68
64 DISALLOW_COPY_AND_ASSIGN(VRServiceImpl); 69 DISALLOW_COPY_AND_ASSIGN(VRServiceImpl);
65 }; 70 };
66 71
67 } // namespace device 72 } // namespace device
68 73
69 #endif // DEVICE_VR_VR_SERVICE_IMPL_H 74 #endif // DEVICE_VR_VR_SERVICE_IMPL_H
OLDNEW
« no previous file with comments | « device/geolocation/geolocation_service_context.cc ('k') | device/vr/vr_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698