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

Unified Diff: content/public/app/content_main_delegate.h

Issue 10479023: Simplify how Content*Client interfaces are created. Instead of depending on the embedder to know wh… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove unused function declaration Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/public/app/content_main_delegate.h
===================================================================
--- content/public/app/content_main_delegate.h (revision 140381)
+++ content/public/app/content_main_delegate.h (working copy)
@@ -13,6 +13,10 @@
namespace content {
+class ContentBrowserClient;
+class ContentPluginClient;
+class ContentRendererClient;
+class ContentUtilityClient;
class ZygoteForkDelegate;
struct MainFunctionParams;
@@ -68,6 +72,17 @@
// Called every time the zygote process forks.
virtual void ZygoteForked() {}
#endif // OS_MACOSX
+
+ protected:
+ friend class ContentClientInitializer;
+
+ // Called once per relevant process type to allow the embedder to customize
+ // content. If an embedder wants the default (empty) implementation, don't
+ // override this.
+ virtual ContentBrowserClient* CreateContentBrowserClient();
+ virtual ContentPluginClient* CreateContentPluginClient();
+ virtual ContentRendererClient* CreateContentRendererClient();
+ virtual ContentUtilityClient* CreateContentUtilityClient();
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698