summaryrefslogtreecommitdiffstats
path: root/extensions/shell/browser/default_shell_browser_main_delegate.h
blob: 64e643fbf51eb0510237f06bfe9c170ed1a878cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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.

#ifndef EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
#define EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_

#include "base/compiler_specific.h"
#include "base/macros.h"
#include "extensions/shell/browser/shell_browser_main_delegate.h"

namespace extensions {

// A ShellBrowserMainDelegate that starts an application specified
// by the "--app" command line. This is used only in the browser process.
class DefaultShellBrowserMainDelegate : public ShellBrowserMainDelegate {
 public:
  DefaultShellBrowserMainDelegate();
  ~DefaultShellBrowserMainDelegate() override;

  // ShellBrowserMainDelegate:
  void Start(content::BrowserContext* context) override;
  void Shutdown() override;
  DesktopController* CreateDesktopController() override;

 private:
  DISALLOW_COPY_AND_ASSIGN(DefaultShellBrowserMainDelegate);
};

}  // namespace extensions

#endif  // DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_