shell_web_main_parts.h 823 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2014 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_SHELL_SHELL_WEB_MAIN_PARTS_H_
  5. #define IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_
  6. #include <memory>
  7. #include "ios/web/public/init/web_main_parts.h"
  8. namespace web {
  9. class ShellBrowserState;
  10. // Shell-specific implementation of WebMainParts.
  11. class ShellWebMainParts : public WebMainParts {
  12. public:
  13. ShellWebMainParts();
  14. ~ShellWebMainParts() override;
  15. ShellBrowserState* browser_state() const { return browser_state_.get(); }
  16. // WebMainParts implementation.
  17. void PreMainMessageLoopRun() override;
  18. private:
  19. std::unique_ptr<ShellBrowserState> browser_state_;
  20. };
  21. } // namespace web
  22. #endif // IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_