| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ |
| 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | 6 #define UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/public/app/content_main_delegate.h" | 13 #include "content/public/app/content_main_delegate.h" |
| 14 #include "content/shell/shell_content_client.h" | 14 #include "content/shell/common/shell_content_client.h" |
| 15 | 15 |
| 16 namespace views { | 16 namespace views { |
| 17 namespace examples { | 17 namespace examples { |
| 18 | 18 |
| 19 class ExamplesContentBrowserClient; | 19 class ExamplesContentBrowserClient; |
| 20 | 20 |
| 21 class ExamplesMainDelegate : public content::ContentMainDelegate { | 21 class ExamplesMainDelegate : public content::ContentMainDelegate { |
| 22 public: | 22 public: |
| 23 ExamplesMainDelegate(); | 23 ExamplesMainDelegate(); |
| 24 virtual ~ExamplesMainDelegate(); | 24 virtual ~ExamplesMainDelegate(); |
| 25 | 25 |
| 26 // content::ContentMainDelegate implementation | 26 // content::ContentMainDelegate implementation |
| 27 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; | 27 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; |
| 28 virtual void PreSandboxStartup() OVERRIDE; | 28 virtual void PreSandboxStartup() OVERRIDE; |
| 29 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; | 29 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 void InitializeResourceBundle(); | 32 void InitializeResourceBundle(); |
| 33 | 33 |
| 34 scoped_ptr<ExamplesContentBrowserClient> browser_client_; | 34 scoped_ptr<ExamplesContentBrowserClient> browser_client_; |
| 35 content::ShellContentClient content_client_; | 35 content::ShellContentClient content_client_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate); | 37 DISALLOW_COPY_AND_ASSIGN(ExamplesMainDelegate); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace examples | 40 } // namespace examples |
| 41 } // namespace views | 41 } // namespace views |
| 42 | 42 |
| 43 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ | 43 #endif // UI_VIEWS_EXAMPLES_CONTENT_CLIENT_EXAMPLES_MAIN_DELEGATE_H_ |
| OLD | NEW |