Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ios / web / public / app / web_main_delegate.h
blobf462384c51de234c795c03acd7e8eee4af039c5e
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_
8 namespace web {
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() {}
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() {}
28 } // namespace web
30 #endif // IOS_WEB_PUBLIC_APP_WEB_MAIN_DELEGATE_H_