web_view_global_state_util.h 725 B

123456789101112131415161718
  1. // Copyright 2017 The Chromium 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. #ifndef IOS_WEB_VIEW_INTERNAL_WEB_VIEW_GLOBAL_STATE_UTIL_H_
  5. #define IOS_WEB_VIEW_INTERNAL_WEB_VIEW_GLOBAL_STATE_UTIL_H_
  6. namespace ios_web_view {
  7. // Initializes global ios_web_view state. Classes reling on the web state being
  8. // initialized should call |InitializeGlobalState| first. It is ok if this
  9. // method is called more than once. All calls to |InitializeGlobalState| after
  10. // the state has already been initialized are no-ops.
  11. void InitializeGlobalState();
  12. } // namespace ios_web_view
  13. #endif // IOS_WEB_VIEW_INTERNAL_WEB_VIEW_GLOBAL_STATE_UTIL_H_