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 CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |
6 #define CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ | 6 #define CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "content/public/app/content_main_delegate.h" | 12 #include "content/public/app/content_main_delegate.h" |
13 #include "content/shell/common/shell_content_client.h" | |
14 | 13 |
15 namespace content { | 14 namespace content { |
| 15 class ContentClient; |
16 class ShellContentBrowserClient; | 16 class ShellContentBrowserClient; |
17 class ShellContentRendererClient; | 17 class ShellContentRendererClient; |
18 class ShellContentUtilityClient; | 18 class ShellContentUtilityClient; |
19 | 19 |
20 #if defined(OS_ANDROID) | 20 #if defined(OS_ANDROID) |
21 class BrowserMainRunner; | 21 class BrowserMainRunner; |
22 #endif | 22 #endif |
23 | 23 |
24 class ShellMainDelegate : public ContentMainDelegate { | 24 class ShellMainDelegate : public ContentMainDelegate { |
25 public: | 25 public: |
(...skipping 11 matching lines...) Expand all Loading... |
37 ContentBrowserClient* CreateContentBrowserClient() override; | 37 ContentBrowserClient* CreateContentBrowserClient() override; |
38 ContentRendererClient* CreateContentRendererClient() override; | 38 ContentRendererClient* CreateContentRendererClient() override; |
39 ContentUtilityClient* CreateContentUtilityClient() override; | 39 ContentUtilityClient* CreateContentUtilityClient() override; |
40 | 40 |
41 static void InitializeResourceBundle(); | 41 static void InitializeResourceBundle(); |
42 | 42 |
43 private: | 43 private: |
44 scoped_ptr<ShellContentBrowserClient> browser_client_; | 44 scoped_ptr<ShellContentBrowserClient> browser_client_; |
45 scoped_ptr<ShellContentRendererClient> renderer_client_; | 45 scoped_ptr<ShellContentRendererClient> renderer_client_; |
46 scoped_ptr<ShellContentUtilityClient> utility_client_; | 46 scoped_ptr<ShellContentUtilityClient> utility_client_; |
47 ShellContentClient content_client_; | 47 scoped_ptr<ContentClient> content_client_; |
48 | 48 |
49 #if defined(OS_ANDROID) | 49 #if defined(OS_ANDROID) |
50 scoped_ptr<BrowserMainRunner> browser_runner_; | 50 scoped_ptr<BrowserMainRunner> browser_runner_; |
51 #endif | 51 #endif |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace content | 56 } // namespace content |
57 | 57 |
58 #endif // CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ | 58 #endif // CONTENT_SHELL_APP_SHELL_MAIN_DELEGATE_H_ |
OLD | NEW |