blob: f462384c51de234c795c03acd7e8eee4af039c5e [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
namespace web {
// Contains delegate hooks that allow a web/ embedder to customize the basic
// startup and shutdown flow. This delegate is called very early in startup and
// very late in shutdown, so only minimal code should be run in its
// implementation. WebMainParts will be a more appropriate place for most
// startup code.
class WebMainDelegate {
virtual ~WebMainDelegate() {}
// Tells the embedder that the absolute basic startup has been done, i.e.
// it's now safe to create singletons and check the command line.
virtual void BasicStartupComplete() {}
// Called right before the process exits.
// TODO(rohitrao): This may not be used for anything. Remove if useless.
virtual void ProcessExiting() {}
} // namespace web