| 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 ContentPluginClient; | 20 class ContentPluginClient; | 
| 20 class ContentRendererClient; | 21 class ContentRendererClient; | 
| 21 class ContentUtilityClient; | 22 class ContentUtilityClient; | 
| 22 class ZygoteForkDelegate; | 23 class ZygoteForkDelegate; | 
| 23 struct MainFunctionParams; | 24 struct MainFunctionParams; | 
| 24 | 25 | 
| 25 class CONTENT_EXPORT ContentMainDelegate { | 26 class CONTENT_EXPORT ContentMainDelegate { | 
| 26  public: | 27  public: | 
| 27   virtual ~ContentMainDelegate() {} | 28   virtual ~ContentMainDelegate() {} | 
| 28 | 29 | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 81   // Returns whether or not profiler recording should be enabled. | 82   // Returns whether or not profiler recording should be enabled. | 
| 82   virtual bool ShouldEnableProfilerRecording(); | 83   virtual bool ShouldEnableProfilerRecording(); | 
| 83 | 84 | 
| 84  protected: | 85  protected: | 
| 85   friend class ContentClientInitializer; | 86   friend class ContentClientInitializer; | 
| 86 | 87 | 
| 87   // Called once per relevant process type to allow the embedder to customize | 88   // Called once per relevant process type to allow the embedder to customize | 
| 88   // content. If an embedder wants the default (empty) implementation, don't | 89   // content. If an embedder wants the default (empty) implementation, don't | 
| 89   // override this. | 90   // override this. | 
| 90   virtual ContentBrowserClient* CreateContentBrowserClient(); | 91   virtual ContentBrowserClient* CreateContentBrowserClient(); | 
|  | 92   virtual ContentGpuClient* CreateContentGpuClient(); | 
| 91   virtual ContentPluginClient* CreateContentPluginClient(); | 93   virtual ContentPluginClient* CreateContentPluginClient(); | 
| 92   virtual ContentRendererClient* CreateContentRendererClient(); | 94   virtual ContentRendererClient* CreateContentRendererClient(); | 
| 93   virtual ContentUtilityClient* CreateContentUtilityClient(); | 95   virtual ContentUtilityClient* CreateContentUtilityClient(); | 
| 94 }; | 96 }; | 
| 95 | 97 | 
| 96 }  // namespace content | 98 }  // namespace content | 
| 97 | 99 | 
| 98 #endif  // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 100 #endif  // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 
| OLD | NEW | 
|---|