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_PUBLIC_APP_WEB_MAIN_DELEGATE_H_ |
| 6 #define IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_ |
| 7 |
| 8 namespace web { |
| 9 |
| 10 // Contains delegate hooks that allow a web/ embedder to customize the basic |
| 11 // startup and shutdown flow. This delegate is called very early in startup and |
| 12 // very late in shutdown, so only minimal code should be run in its |
| 13 // implementation. WebMainParts will be a more appropriate place for most |
| 14 // startup code. |
| 15 class WebMainDelegate { |
| 16 public: |
| 17 virtual ~WebMainDelegate() {} |
| 18 |
| 19 // Tells the embedder that the absolute basic startup has been done, i.e. |
| 20 // it's now safe to create singletons and check the command line. |
| 21 virtual void BasicStartupComplete() {} |
| 22 |
| 23 // Called right before the process exits. |
| 24 // TODO(rohitrao): This may not be used for anything. Remove if useless. |
| 25 virtual void ProcessExiting() {} |
| 26 }; |
| 27 |
| 28 } // namespace web |
| 29 |
| 30 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_ |
OLD | NEW |