| OLD | NEW | 
|   1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |   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 |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #ifndef APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |   5 #ifndef APPS_SHELL_SHELL_MAIN_DELEGATE_H_ | 
|   6 #define APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |   6 #define APPS_SHELL_SHELL_MAIN_DELEGATE_H_ | 
|   7  |   7  | 
|   8 #include "apps/shell/app_shell_content_client.h" |   8 #include "apps/shell/shell_content_client.h" | 
|   9 #include "base/compiler_specific.h" |   9 #include "base/compiler_specific.h" | 
|  10 #include "base/memory/scoped_ptr.h" |  10 #include "base/memory/scoped_ptr.h" | 
|  11 #include "content/public/app/content_main_delegate.h" |  11 #include "content/public/app/content_main_delegate.h" | 
|  12  |  12  | 
|  13 namespace apps { |  13 namespace apps { | 
|  14  |  14  | 
|  15 class AppShellContentBrowserClient; |  15 class ShellContentBrowserClient; | 
|  16  |  16  | 
|  17 class AppShellMainDelegate : public content::ContentMainDelegate { |  17 class ShellMainDelegate : public content::ContentMainDelegate { | 
|  18  public: |  18  public: | 
|  19   AppShellMainDelegate(); |  19   ShellMainDelegate(); | 
|  20   virtual ~AppShellMainDelegate(); |  20   virtual ~ShellMainDelegate(); | 
|  21  |  21  | 
|  22   // ContentMainDelegate implementation: |  22   // ContentMainDelegate implementation: | 
|  23   virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; |  23   virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; | 
|  24   virtual void PreSandboxStartup() OVERRIDE; |  24   virtual void PreSandboxStartup() OVERRIDE; | 
|  25   virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; |  25   virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | 
|  26  |  26  | 
|  27   static void InitializeResourceBundle(); |  27   static void InitializeResourceBundle(); | 
|  28  |  28  | 
|  29  private: |  29  private: | 
|  30   scoped_ptr<AppShellContentBrowserClient> browser_client_; |  30   scoped_ptr<ShellContentBrowserClient> browser_client_; | 
|  31   AppShellContentClient content_client_; |  31   ShellContentClient content_client_; | 
|  32  |  32  | 
|  33   DISALLOW_COPY_AND_ASSIGN(AppShellMainDelegate); |  33   DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); | 
|  34 }; |  34 }; | 
|  35  |  35  | 
|  36 }  // namespace apps |  36 }  // namespace apps | 
|  37  |  37  | 
|  38 #endif  // APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |  38 #endif  // APPS_SHELL_SHELL_MAIN_DELEGATE_H_ | 
| OLD | NEW |