initialize(mediaRouterService, providers, config = undefined) {
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.WEBRTC, mr.ModuleId.WEBRTC_STREAMING_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.CAST_STREAMING,
        mr.ModuleId.CAST_STREAMING_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.HANGOUTS, mr.ModuleId.HANGOUTS_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.MEETINGS, mr.ModuleId.MEETINGS_SERVICE);

    mr.MessagePortService.setService(new mr.MessagePortServiceImpl(this));

    this.mediaRouterService_ = mediaRouterService;
    this.mrRouteMessageSender_.init(
        this.mediaRouterService_.onRouteMessagesReceived.bind(
            this.mediaRouterService_));
    this.registerAllProviders(providers, config);

    mr.PersistentDataManager.register(this);
    mr.Module.onModuleLoaded(mr.ModuleId.PROVIDER_MANAGER, this);
  }
/**
   * Initializes the provider manager, register / initialize given providers,
   * and registers itself with PersistentDataManager.
   * @param {!mr.MediaRouterService} mediaRouterService
   * @param {!Array<!mr.Provider>} providers
   * @param {!mojo.MediaRouteProviderConfig=} config
   */
Initializes the provider manager, register / initialize given providers,
and registers itself with PersistentDataManager.
Initializes the provider manager register / initialize given providers and registers itself with PersistentDataManager .
initialize(mediaRouterService, providers, config = undefined) {
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.WEBRTC, mr.ModuleId.WEBRTC_STREAMING_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.CAST_STREAMING,
        mr.ModuleId.CAST_STREAMING_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.HANGOUTS, mr.ModuleId.HANGOUTS_SERVICE);
    this.mirrorServiceModules_.set(
        mr.mirror.ServiceName.MEETINGS, mr.ModuleId.MEETINGS_SERVICE);
    mr.MessagePortService.setService(new mr.MessagePortServiceImpl(this));
    this.mediaRouterService_ = mediaRouterService;
    this.mrRouteMessageSender_.init(
        this.mediaRouterService_.onRouteMessagesReceived.bind(
            this.mediaRouterService_));
    this.registerAllProviders(providers, config);
    mr.PersistentDataManager.register(this);
    mr.Module.onModuleLoaded(mr.ModuleId.PROVIDER_MANAGER, this);
  }
initialize ( mediaRouterService , providers , config = undefined ) { this . mirrorServiceModules_ . set ( mr . mirror . ServiceName . WEBRTC , mr . ModuleId . WEBRTC_STREAMING_SERVICE ) ; this . mirrorServiceModules_ . set ( mr . mirror . ServiceName . CAST_STREAMING , mr . ModuleId . CAST_STREAMING_SERVICE ) ; this . mirrorServiceModules_ . set ( mr . mirror . ServiceName . HANGOUTS , mr . ModuleId . HANGOUTS_SERVICE ) ; this . mirrorServiceModules_ . set ( mr . mirror . ServiceName . MEETINGS , mr . ModuleId . MEETINGS_SERVICE ) ; mr . MessagePortService . setService ( new mr . MessagePortServiceImpl ( this ) ) ; this . mediaRouterService_ = mediaRouterService ; this . mrRouteMessageSender_ . init ( this . mediaRouterService_ . onRouteMessagesReceived . bind ( this . mediaRouterService_ ) ) ; this . registerAllProviders ( providers , config ) ; mr . PersistentDataManager . register ( this ) ; mr . Module . onModuleLoaded ( mr . ModuleId . PROVIDER_MANAGER , this ) ; }
Initializes the provider manager, register / initialize given providers,
 and registers itself with PersistentDataManager.
Initializes the provider manager register / initialize given providers and registers itself with PersistentDataManager .