Line data Source code
1 : /*
2 : * If not stated otherwise in this file or this component's LICENSE file the
3 : * following copyright and licenses apply:
4 : *
5 : * Copyright 2022 Sky UK
6 : *
7 : * Licensed under the Apache License, Version 2.0 (the "License");
8 : * you may not use this file except in compliance with the License.
9 : * You may obtain a copy of the License at
10 : *
11 : * http://www.apache.org/licenses/LICENSE-2.0
12 : *
13 : * Unless required by applicable law or agreed to in writing, software
14 : * distributed under the License is distributed on an "AS IS" BASIS,
15 : * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 : * See the License for the specific language governing permissions and
17 : * limitations under the License.
18 : */
19 :
20 : #include "IpcFactory.h"
21 : #include "ApplicationManagementServer.h"
22 : #include "IControlModuleService.h"
23 : #include "IIpcServer.h"
24 : #include "ILinuxWrapper.h"
25 : #include "IMediaKeysCapabilitiesModuleService.h"
26 : #include "IMediaKeysModuleService.h"
27 : #include "IMediaPipelineCapabilitiesModuleService.h"
28 : #include "IMediaPipelineModuleService.h"
29 : #include "IPrivateMetricsModuleService.h"
30 : #include "IServerManagerModuleServiceFactory.h"
31 : #include "IWebAudioPlayerModuleService.h"
32 : #include "SessionManagementServer.h"
33 :
34 : namespace firebolt::rialto::server::ipc
35 : {
36 : std::unique_ptr<IApplicationManagementServer>
37 0 : IpcFactory::createApplicationManagementServer(service::ISessionServerManager &sessionServerManager) const
38 : {
39 : return std::make_unique<
40 0 : ApplicationManagementServer>(firebolt::rialto::ipc::IServerFactory::createFactory(),
41 0 : firebolt::rialto::server::ipc::IServerManagerModuleServiceFactory::createFactory(),
42 0 : sessionServerManager);
43 : }
44 :
45 : std::unique_ptr<ISessionManagementServer>
46 0 : IpcFactory::createSessionManagementServer(service::IPlaybackService &playbackService, service::ICdmService &cdmService,
47 : service::IControlService &controlService) const
48 : {
49 : return std::make_unique<
50 0 : SessionManagementServer>(firebolt::rialto::wrappers::ILinuxWrapperFactory::createFactory()->createLinuxWrapper(),
51 0 : firebolt::rialto::ipc::IServerFactory::createFactory(),
52 0 : firebolt::rialto::server::ipc::IMediaPipelineModuleServiceFactory::createFactory(),
53 0 : firebolt::rialto::server::ipc::IMediaPipelineCapabilitiesModuleServiceFactory::createFactory(),
54 0 : firebolt::rialto::server::ipc::IMediaKeysModuleServiceFactory::createFactory(),
55 0 : firebolt::rialto::server::ipc::IMediaKeysCapabilitiesModuleServiceFactory::createFactory(),
56 0 : firebolt::rialto::server::ipc::IWebAudioPlayerModuleServiceFactory::createFactory(),
57 0 : firebolt::rialto::server::ipc::IPrivateMetricsModuleServiceFactory::createFactory(),
58 0 : firebolt::rialto::server::ipc::IControlModuleServiceFactory::createFactory(),
59 0 : playbackService, cdmService, controlService);
60 : }
61 : } // namespace firebolt::rialto::server::ipc
|