1 // Copyright (c) 2013 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 APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_
6 #define APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_
8 #include "apps/shell/app_shell_content_client.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/public/app/content_main_delegate.h"
15 class AppShellContentBrowserClient
;
17 class AppShellMainDelegate
: public content::ContentMainDelegate
{
19 AppShellMainDelegate();
20 virtual ~AppShellMainDelegate();
22 // ContentMainDelegate implementation:
23 virtual bool BasicStartupComplete(int* exit_code
) OVERRIDE
;
24 virtual void PreSandboxStartup() OVERRIDE
;
25 virtual content::ContentBrowserClient
* CreateContentBrowserClient() OVERRIDE
;
27 static void InitializeResourceBundle();
30 scoped_ptr
<AppShellContentBrowserClient
> browser_client_
;
31 AppShellContentClient content_client_
;
33 DISALLOW_COPY_AND_ASSIGN(AppShellMainDelegate
);
38 #endif // APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_