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

Unified Diff: content/shell/shell_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/shell/shell_main_delegate.h
===================================================================
--- content/shell/shell_main_delegate.h (revision 140381)
+++ content/shell/shell_main_delegate.h (working copy)
@@ -14,8 +14,6 @@
namespace content {
class ShellContentBrowserClient;
class ShellContentRendererClient;
-class ShellContentPluginClient;
-class ShellContentUtilityClient;
} // namespace content
class ShellMainDelegate : public content::ContentMainDelegate {
@@ -23,23 +21,21 @@
ShellMainDelegate();
virtual ~ShellMainDelegate();
+ // content::ContentMainDelegate implementation:
virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
virtual void PreSandboxStartup() OVERRIDE;
virtual int RunProcess(
const std::string& process_type,
const content::MainFunctionParams& main_function_params) OVERRIDE;
-#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID)
- virtual void ZygoteForked() OVERRIDE;
-#endif
+ virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
+ virtual content::ContentRendererClient*
+ CreateContentRendererClient() OVERRIDE;
private:
- void InitializeShellContentClient(const std::string& process_type);
void InitializeResourceBundle();
scoped_ptr<content::ShellContentBrowserClient> browser_client_;
scoped_ptr<content::ShellContentRendererClient> renderer_client_;
- scoped_ptr<content::ShellContentPluginClient> plugin_client_;
- scoped_ptr<content::ShellContentUtilityClient> utility_client_;
content::ShellContentClient content_client_;
DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);

Powered by Google App Engine
This is Rietveld 408576698