OLD | NEW |
(Empty) | |
| 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 |
| 5 #ifndef IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
| 6 #define IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
| 7 |
| 8 #include "ios/web/public/app/web_main_parts.h" |
| 9 |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 namespace web { |
| 13 class ShellBrowserState; |
| 14 |
| 15 // Shell-specific implementation of WebMainParts. |
| 16 class ShellWebMainParts : public WebMainParts { |
| 17 public: |
| 18 ShellWebMainParts(); |
| 19 ~ShellWebMainParts() override; |
| 20 |
| 21 ShellBrowserState* browser_state() const { return browser_state_.get(); } |
| 22 |
| 23 // WebMainParts implementation. |
| 24 void PreMainMessageLoopRun() override; |
| 25 |
| 26 private: |
| 27 scoped_ptr<ShellBrowserState> browser_state_; |
| 28 }; |
| 29 |
| 30 } // namespace web |
| 31 |
| 32 #endif // IOS_WEB_SHELL_SHELL_WEB_MAIN_PARTS_H_ |
OLD | NEW |