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. 4 5 #ifndef APPS_SHELL_SHELL_MAIN_DELEGATE_H_ 6 #define APPS_SHELL_SHELL_MAIN_DELEGATE_H_ 7 8 #include "apps/shell/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" 12 13 namespace apps { 14 15 class ShellContentBrowserClient; 16 17 class ShellMainDelegate : public content::ContentMainDelegate { 18 public: 19 ShellMainDelegate(); 20 virtual ~ShellMainDelegate(); 21 22 // ContentMainDelegate implementation: 23 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 24 virtual void PreSandboxStartup() OVERRIDE; 25 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 26 27 static void InitializeResourceBundle(); 28 29 private: 30 scoped_ptr<ShellContentBrowserClient> browser_client_; 31 ShellContentClient content_client_; 32 33 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); 34 }; 35 36 } // namespace apps 37 38 #endif // APPS_SHELL_SHELL_MAIN_DELEGATE_H_ 39