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

Side by Side Diff: ash/shell/content_client/shell_main_delegate.h

Issue 10054038: Support WebView in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SHELL_CONTENT_CLIENT_SHELL_MAIN_DELEGATE_H_
6 #define ASH_SHELL_CONTENT_CLIENT_SHELL_MAIN_DELEGATE_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "content/shell/shell_content_client.h"
12 #include "content/public/app/content_main_delegate.h"
13
14 namespace content {
15 class ShellContentRendererClient;
16 class ShellContentPluginClient;
17 class ShellContentUtilityClient;
18 }
19
20 namespace ash {
21 namespace shell {
22
23 class ShellContentBrowserClient;
24
25 class ShellMainDelegate : public content::ContentMainDelegate {
26 public:
27 ShellMainDelegate();
28 virtual ~ShellMainDelegate();
29
30 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
31 virtual void PreSandboxStartup() OVERRIDE;
32 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
33 virtual int RunProcess(
34 const std::string& process_type,
35 const content::MainFunctionParams& main_function_params) OVERRIDE;
36 virtual void ProcessExiting(const std::string& process_type) OVERRIDE;
37 #if defined(OS_MACOSX)
38 virtual bool ProcessRegistersWithSystemProcess(
39 const std::string& process_type) OVERRIDE;
40 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE;
41 virtual bool DelaySandboxInitialization(
42 const std::string& process_type) OVERRIDE;
43 #elif defined(OS_POSIX)
44 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE;
45 virtual void ZygoteForked() OVERRIDE;
46 #endif // OS_MACOSX
47
48 private:
49 void InitializeShellContentClient(const std::string& process_type);
50 void InitializeResourceBundle();
51
52 scoped_ptr<ShellContentBrowserClient> browser_client_;
53 scoped_ptr<content::ShellContentRendererClient> renderer_client_;
54 scoped_ptr<content::ShellContentPluginClient> plugin_client_;
55 scoped_ptr<content::ShellContentUtilityClient> utility_client_;
56 content::ShellContentClient content_client_;
57
58 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);
59 };
60
61 } // namespace shell
62 } // namespace ash
63
64 #endif // ASH_SHELL_CONTENT_CLIENT_SHELL_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/content_client/shell_content_browser_client.cc ('k') | ash/shell/content_client/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698