default_shell_browser_main_delegate.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
  5. #define EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
  6. #include "base/compiler_specific.h"
  7. #include "extensions/shell/browser/shell_browser_main_delegate.h"
  8. namespace extensions {
  9. // A ShellBrowserMainDelegate that starts an application specified
  10. // by the "--app" command line. This is used only in the browser process.
  11. class DefaultShellBrowserMainDelegate : public ShellBrowserMainDelegate {
  12. public:
  13. DefaultShellBrowserMainDelegate();
  14. DefaultShellBrowserMainDelegate(const DefaultShellBrowserMainDelegate&) =
  15. delete;
  16. DefaultShellBrowserMainDelegate& operator=(
  17. const DefaultShellBrowserMainDelegate&) = delete;
  18. ~DefaultShellBrowserMainDelegate() override;
  19. // ShellBrowserMainDelegate:
  20. void Start(content::BrowserContext* context) override;
  21. void Shutdown() override;
  22. DesktopController* CreateDesktopController(
  23. content::BrowserContext* context) override;
  24. };
  25. } // namespace extensions
  26. #endif // EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_