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_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 | 12 |
13 template <typename> | 13 template <typename> |
14 class ScopedVector; | 14 class ScopedVector; |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class ContentBrowserClient; | 18 class ContentBrowserClient; |
19 class ContentGpuClient; | 19 class ContentGpuClient; |
20 class ContentPluginClient; | |
21 class ContentRendererClient; | 20 class ContentRendererClient; |
22 class ContentUtilityClient; | 21 class ContentUtilityClient; |
23 class ZygoteForkDelegate; | 22 class ZygoteForkDelegate; |
24 struct MainFunctionParams; | 23 struct MainFunctionParams; |
25 | 24 |
26 class CONTENT_EXPORT ContentMainDelegate { | 25 class CONTENT_EXPORT ContentMainDelegate { |
27 public: | 26 public: |
28 virtual ~ContentMainDelegate() {} | 27 virtual ~ContentMainDelegate() {} |
29 | 28 |
30 // Tells the embedder that the absolute basic startup has been done, i.e. | 29 // Tells the embedder that the absolute basic startup has been done, i.e. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual bool ShouldEnableProfilerRecording(); | 82 virtual bool ShouldEnableProfilerRecording(); |
84 | 83 |
85 protected: | 84 protected: |
86 friend class ContentClientInitializer; | 85 friend class ContentClientInitializer; |
87 | 86 |
88 // Called once per relevant process type to allow the embedder to customize | 87 // Called once per relevant process type to allow the embedder to customize |
89 // content. If an embedder wants the default (empty) implementation, don't | 88 // content. If an embedder wants the default (empty) implementation, don't |
90 // override this. | 89 // override this. |
91 virtual ContentBrowserClient* CreateContentBrowserClient(); | 90 virtual ContentBrowserClient* CreateContentBrowserClient(); |
92 virtual ContentGpuClient* CreateContentGpuClient(); | 91 virtual ContentGpuClient* CreateContentGpuClient(); |
93 virtual ContentPluginClient* CreateContentPluginClient(); | |
94 virtual ContentRendererClient* CreateContentRendererClient(); | 92 virtual ContentRendererClient* CreateContentRendererClient(); |
95 virtual ContentUtilityClient* CreateContentUtilityClient(); | 93 virtual ContentUtilityClient* CreateContentUtilityClient(); |
96 }; | 94 }; |
97 | 95 |
98 } // namespace content | 96 } // namespace content |
99 | 97 |
100 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 98 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
OLD | NEW |