| OLD | NEW |
| (Empty) |
| 1 // Copyright 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 "base/compiler_specific.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "content/public/app/content_main_delegate.h" | |
| 11 | |
| 12 namespace apps { | |
| 13 | |
| 14 class ShellContentBrowserClient; | |
| 15 class ShellContentClient; | |
| 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 virtual content::ContentRendererClient* CreateContentRendererClient() | |
| 27 OVERRIDE; | |
| 28 | |
| 29 static void InitializeResourceBundle(); | |
| 30 | |
| 31 private: | |
| 32 scoped_ptr<ShellContentClient> content_client_; | |
| 33 scoped_ptr<ShellContentBrowserClient> browser_client_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); | |
| 36 }; | |
| 37 | |
| 38 } // namespace apps | |
| 39 | |
| 40 #endif // APPS_SHELL_SHELL_MAIN_DELEGATE_H_ | |
| OLD | NEW |