Chromium Code Reviews| 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 // Returns true if profiler recording is enabled, and false otherwise. | |
| 80 virtual bool EnableProfilerRecording() {return false;} | |
|
vadimt
2015/03/12 18:23:03
ShouldEnable... ?
yao
2015/03/13 15:24:49
Done.
| |
| 81 | |
| 79 protected: | 82 protected: |
| 80 friend class ContentClientInitializer; | 83 friend class ContentClientInitializer; |
| 81 | 84 |
| 82 // Called once per relevant process type to allow the embedder to customize | 85 // Called once per relevant process type to allow the embedder to customize |
| 83 // content. If an embedder wants the default (empty) implementation, don't | 86 // content. If an embedder wants the default (empty) implementation, don't |
| 84 // override this. | 87 // override this. |
| 85 virtual ContentBrowserClient* CreateContentBrowserClient(); | 88 virtual ContentBrowserClient* CreateContentBrowserClient(); |
| 86 virtual ContentPluginClient* CreateContentPluginClient(); | 89 virtual ContentPluginClient* CreateContentPluginClient(); |
| 87 virtual ContentRendererClient* CreateContentRendererClient(); | 90 virtual ContentRendererClient* CreateContentRendererClient(); |
| 88 virtual ContentUtilityClient* CreateContentUtilityClient(); | 91 virtual ContentUtilityClient* CreateContentUtilityClient(); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace content | 94 } // namespace content |
| 92 | 95 |
| 93 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ | 96 #endif // CONTENT_PUBLIC_APP_CONTENT_MAIN_DELEGATE_H_ |
| OLD | NEW |