@@ -7808,10 +7808,10 @@ -(void)addPluginLayerType:(Class)pluginLayerClass {
78087808- (MLNPluginProtocolHandlerResource *)resourceFromCoreResource:(const mbgl::Resource &)resource {
78097809
78107810 MLNPluginProtocolHandlerResource *tempResult = [[MLNPluginProtocolHandlerResource alloc ] init ];
7811-
7811+
78127812 // The URL of the request
78137813 tempResult.resourceURL = [NSString stringWithUTF8String: resource.url.c_str ()];
7814-
7814+
78157815 // The kind of request
78167816 switch (resource.kind ) {
78177817 case mbgl::Resource::Kind::Style:
@@ -7839,7 +7839,7 @@ - (MLNPluginProtocolHandlerResource *)resourceFromCoreResource:(const mbgl::Reso
78397839 tempResult.resourceKind = MLNPluginProtocolHandlerResourceKindUnknown;
78407840 break ;
78417841 }
7842-
7842+
78437843 // The loading method
78447844 if (resource.loadingMethod == mbgl::Resource::LoadingMethod::CacheOnly) {
78457845 tempResult.loadingMethod = MLNPluginProtocolHandlerResourceLoadingMethodCacheOnly;
@@ -7848,7 +7848,7 @@ - (MLNPluginProtocolHandlerResource *)resourceFromCoreResource:(const mbgl::Reso
78487848 } else if (resource.loadingMethod == mbgl::Resource::LoadingMethod::All) {
78497849 tempResult.loadingMethod = MLNPluginProtocolHandlerResourceLoadingMethodAll;
78507850 }
7851-
7851+
78527852 if (resource.tileData ) {
78537853 auto td = *resource.tileData ;
78547854 MLNTileData *tileData = [[MLNTileData alloc ] init ];
@@ -7859,7 +7859,7 @@ - (MLNPluginProtocolHandlerResource *)resourceFromCoreResource:(const mbgl::Reso
78597859 tileData.tileZoom = td.z ;
78607860 tempResult.tileData = tileData;
78617861 }
7862-
7862+
78637863 // TODO: Figure out which other properties from resource should be passed along here
78647864/*
78657865 Usage usage{Usage::Online};
@@ -7872,7 +7872,7 @@ - (MLNPluginProtocolHandlerResource *)resourceFromCoreResource:(const mbgl::Reso
78727872 Duration minimumUpdateInterval{Duration::zero()};
78737873 StoragePolicy storagePolicy{StoragePolicy::Permanent};
78747874 */
7875-
7875+
78767876 return tempResult;
78777877
78787878}
@@ -7888,7 +7888,7 @@ - (void)addPluginProtocolHandler:(Class)pluginProtocolHandlerClass {
78887888
78897889 // TODO: Unclear if any of these options are needed for plugins
78907890 mbgl::ResourceOptions resourceOptions;
7891-
7891+
78927892 // TODO: Unclear if any of the properties on clientOptions need to be set
78937893 mbgl::ClientOptions clientOptions;
78947894
@@ -7904,7 +7904,7 @@ - (void)addPluginProtocolHandler:(Class)pluginProtocolHandlerClass {
79047904 if (strongHandler) {
79057905
79067906 MLNPluginProtocolHandlerResource *res = [weakSelf resourceFromCoreResource: resource];
7907-
7907+
79087908 // TODO: Figure out what other fields in response need to be passed back from requestResource
79097909 MLNPluginProtocolHandlerResponse *response = [strongHandler requestResource: res];
79107910 if (response.data ) {
0 commit comments