| 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" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS) | 69 #elif defined(OS_POSIX) && !defined(OS_ANDROID) && !defined(OS_IOS) |
| 70 // Tells the embedder that the zygote process is starting, and allows it to | 70 // Tells the embedder that the zygote process is starting, and allows it to |
| 71 // specify one or more zygote delegates if it wishes by storing them in | 71 // specify one or more zygote delegates if it wishes by storing them in |
| 72 // |*delegates|. | 72 // |*delegates|. |
| 73 virtual void ZygoteStarting(ScopedVector<ZygoteForkDelegate>* delegates); | 73 virtual void ZygoteStarting(ScopedVector<ZygoteForkDelegate>* delegates); |
| 74 | 74 |
| 75 // Called every time the zygote process forks. | 75 // Called every time the zygote process forks. |
| 76 virtual void ZygoteForked() {} | 76 virtual void ZygoteForked() {} |
| 77 #endif // OS_MACOSX | 77 #endif // OS_MACOSX |
| 78 | 78 |
| 79 // Allows the embedder to disable termination on heap corruption. | |
| 80 // This is being used to measure the impact of this feature on crash reports. | |
| 81 // Termination on heap corruption is enabled by default. | |
| 82 // TODO(erikwright): Remove this by September 2014 when experimentation is | |
| 83 // complete. | |
| 84 virtual bool ShouldEnableTerminationOnHeapCorruption(); | |
| 85 | |
| 86 protected: | 79 protected: |
| 87 friend class ContentClientInitializer; | 80 friend class ContentClientInitializer; |
| 88 | 81 |
| 89 // Called once per relevant process type to allow the embedder to customize | 82 // Called once per relevant process type to allow the embedder to customize |
| 90 // content. If an embedder wants the default (empty) implementation, don't | 83 // content. If an embedder wants the default (empty) implementation, don't |
| 91 // override this. | 84 // override this. |
| 92 virtual ContentBrowserClient* CreateContentBrowserClient(); | 85 virtual ContentBrowserClient* CreateContentBrowserClient(); |
| 93 virtual ContentPluginClient* CreateContentPluginClient(); | 86 virtual ContentPluginClient* CreateContentPluginClient(); |
| 94 virtual ContentRendererClient* CreateContentRendererClient(); | 87 virtual ContentRendererClient* CreateContentRendererClient(); |
| 95 virtual ContentUtilityClient* CreateContentUtilityClient(); | 88 virtual ContentUtilityClient* CreateContentUtilityClient(); |
| 96 }; | 89 }; |
| 97 | 90 |
| 98 } // namespace content | 91 } // namespace content |
| 99 | 92 |
| 100 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 93 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
| OLD | NEW |