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

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

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.cc
===================================================================
--- content/public/app/content_main_delegate.cc (revision 140381)
+++ content/public/app/content_main_delegate.cc (working copy)
@@ -4,6 +4,11 @@
#include "content/public/app/content_main_delegate.h"
+#include "content/public/browser/content_browser_client.h"
+#include "content/public/plugin/content_plugin_client.h"
+#include "content/public/renderer/content_renderer_client.h"
+#include "content/public/utility/content_utility_client.h"
+
namespace content {
bool ContentMainDelegate::BasicStartupComplete(int* exit_code) {
@@ -40,4 +45,20 @@
#endif
+ContentBrowserClient* ContentMainDelegate::CreateContentBrowserClient() {
+ return new ContentBrowserClient();
+}
+
+ContentPluginClient* ContentMainDelegate::CreateContentPluginClient() {
+ return new ContentPluginClient();
+}
+
+ContentRendererClient* ContentMainDelegate::CreateContentRendererClient() {
+ return new ContentRendererClient();
+}
+
+ContentUtilityClient* ContentMainDelegate::CreateContentUtilityClient() {
+ return new ContentUtilityClient();
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698