@@ -277,8 +277,13 @@ void WebFrame::ExecuteJavaScriptInIsolatedWorld(int world_id,
277277void WebFrame::SetIsolatedWorldContentSecurityPolicy (int world_id,
278278 const std::string& security_policy) {
279279 web_frame_->SetIsolatedWorldContentSecurityPolicy (
280- world_id,
281- blink::WebString::FromUTF8 (security_policy));
280+ world_id, blink::WebString::FromUTF8 (security_policy));
281+ }
282+
283+ void WebFrame::SetIsolatedWorldHumanReadableName (int world_id,
284+ const std::string& name) {
285+ web_frame_->SetIsolatedWorldHumanReadableName (
286+ world_id, blink::WebString::FromUTF8 (name));
282287}
283288
284289// static
@@ -334,6 +339,8 @@ void WebFrame::BuildPrototype(
334339 &WebFrame::ExecuteJavaScriptInIsolatedWorld)
335340 .SetMethod (" setIsolatedWorldContentSecurityPolicy" ,
336341 &WebFrame::SetIsolatedWorldContentSecurityPolicy)
342+ .SetMethod (" setIsolatedWorldHumanReadableName" ,
343+ &WebFrame::SetIsolatedWorldHumanReadableName)
337344 .SetMethod (" getResourceUsage" , &WebFrame::GetResourceUsage)
338345 .SetMethod (" clearCache" , &WebFrame::ClearCache)
339346 // TODO(kevinsawicki): Remove in 2.0, deprecate before then with warnings
0 commit comments