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