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_DART_RUNTIME_HOOKS_H_ 6 #define FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_ 7 8 #include "flutter/fml/macros.h" 9 #include "third_party/dart/runtime/include/dart_api.h" 10 11 namespace flutter { 12 13 class DartRuntimeHooks { 14 public: 15 static void Install(bool is_ui_isolate, const std::string& script_uri); 16 static void RegisterNatives(tonic::DartLibraryNatives* natives); 17 18 private: 19 FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartRuntimeHooks); 20 }; 21 22 } // namespace flutter 23 24 #endif // FLUTTER_LIB_UI_DART_RUNTIME_HOOKS_H_ 25