default_shell_browser_main_delegate.h revision 1320f92c476a1ad9d19dba2a48c72b75566198e9
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define EXTENSIONS_SHELL_BROWSER_DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/compiler_specific.h"
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/macros.h"
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "extensions/shell/browser/shell_browser_main_delegate.h"
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
127dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochnamespace extensions {
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A ShellBrowserMainDelegate that starts an application specified
15ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// by the "--app" command line. This is used only in the browser process.
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)class DefaultShellBrowserMainDelegate : public ShellBrowserMainDelegate {
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) public:
18eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch  DefaultShellBrowserMainDelegate();
197dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  virtual ~DefaultShellBrowserMainDelegate();
20f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)  // ShellBrowserMainDelegate:
227dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch  virtual void Start(content::BrowserContext* context) OVERRIDE;
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  virtual void Shutdown() OVERRIDE;
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  virtual DesktopController* CreateDesktopController() OVERRIDE;
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) private:
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  DISALLOW_COPY_AND_ASSIGN(DefaultShellBrowserMainDelegate);
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)};
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace extensions
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // DEFAULT_SHELL_BROWSER_MAIN_DELEGATE_H_
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)