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.
5 #ifndef IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_
6 #define IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_
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
15 class WebMainDelegate
{
17 virtual ~WebMainDelegate() {}
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() {}
23 // Called right before the process exits.
24 // TODO(rohitrao): This may not be used for anything. Remove if useless.
25 virtual void ProcessExiting() {}
30 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_