Flutter Engine
flutter_runner::IsolateConfigurator Class Referencefinal

#include <isolate_configurator.h>

Public Member Functions

 IsolateConfigurator (UniqueFDIONS fdio_ns, fidl::InterfaceHandle< fuchsia::sys::Environment > environment, zx::channel directory_request, zx::eventpair view_ref)
 
 ~IsolateConfigurator ()
 
bool ConfigureCurrentIsolate ()
 

Detailed Description

Definition at line 19 of file isolate_configurator.h.

Constructor & Destructor Documentation

◆ IsolateConfigurator()

flutter_runner::IsolateConfigurator::IsolateConfigurator ( UniqueFDIONS  fdio_ns,
fidl::InterfaceHandle< fuchsia::sys::Environment >  environment,
zx::channel  directory_request,
zx::eventpair  view_ref 
)

Definition at line 16 of file isolate_configurator.cc.

References ~IsolateConfigurator().

21  : fdio_ns_(std::move(fdio_ns)),
22  environment_(std::move(environment)),
23  directory_request_(std::move(directory_request)),
24  view_ref_(std::move(view_ref)) {}

◆ ~IsolateConfigurator()

flutter_runner::IsolateConfigurator::~IsolateConfigurator ( )
default

Referenced by IsolateConfigurator().

Member Function Documentation

◆ ConfigureCurrentIsolate()

bool flutter_runner::IsolateConfigurator::ConfigureCurrentIsolate ( )

Definition at line 28 of file isolate_configurator.cc.

References FML_CHECK, fml::UniqueObject< T, Traits >::get(), fuchsia::dart::Initialize(), tonic::LogIfError(), fml::UniqueObject< T, Traits >::release(), and tonic::ToDart().

28  {
29  if (used_) {
30  return false;
31  }
32  used_ = true;
33 
34  BindFuchsia();
35  BindZircon();
36  BindDartIO();
37 
38  // This is now owned by the Dart bindings. So relinquish our ownership of the
39  // handle.
40  (void)fdio_ns_.release();
41 
42  return true;
43 }

The documentation for this class was generated from the following files: