Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: content/public/app/content_main_delegate.h

Issue 999883002: Profiler-instrumentation of the startup time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 whether or not profiler recording should be enabled.
80 virtual bool ShouldEnableProfilerRecording() {return false;}
vadimt 2015/03/13 15:27:41 Please mention the bug here too.
yao 2015/03/13 15:35:01 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_
OLDNEW
« no previous file with comments | « content/browser/browser_main_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698