Flutter Engine
isolate_name_server_natives.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_LIB_UI_ISOLATE_NAME_SERVER_NATIVES_H_
6 #define FLUTTER_LIB_UI_ISOLATE_NAME_SERVER_NATIVES_H_
7 
8 #include <string>
9 
10 #include "third_party/dart/runtime/include/dart_api.h"
11 
12 namespace tonic {
13 class DartLibraryNatives;
14 } // namespace tonic
15 
16 namespace flutter {
17 
19  public:
20  static Dart_Handle LookupPortByName(const std::string& name);
21  static Dart_Handle RegisterPortWithName(Dart_Handle port_handle,
22  const std::string& name);
23  static Dart_Handle RemovePortNameMapping(const std::string& name);
24  static void RegisterNatives(tonic::DartLibraryNatives* natives);
25 };
26 
27 } // namespace flutter
28 
29 #endif // FLUTTER_LIB_UI_ISOLATE_NAME_SERVER_NATIVES_H_
const char * name
Definition: fuchsia.cc:50