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

Side by Side Diff: content/shell/shell_main_delegate.h

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_main_delegate.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SHELL_SHELL_MAIN_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_
6 #define CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ 6 #define CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 class ShellMainDelegate : public content::ContentMainDelegate { 21 class ShellMainDelegate : public content::ContentMainDelegate {
22 public: 22 public:
23 ShellMainDelegate(); 23 ShellMainDelegate();
24 virtual ~ShellMainDelegate(); 24 virtual ~ShellMainDelegate();
25 25
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
27 virtual void PreSandboxStartup() OVERRIDE; 27 virtual void PreSandboxStartup() OVERRIDE;
28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; 28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
29 virtual int RunProcess( 29 virtual int RunProcess(
30 const std::string& process_type, 30 const std::string& process_type,
31 const MainFunctionParams& main_function_params) OVERRIDE; 31 const content::MainFunctionParams& main_function_params) OVERRIDE;
32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE; 32 virtual void ProcessExiting(const std::string& process_type) OVERRIDE;
33 #if defined(OS_MACOSX) 33 #if defined(OS_MACOSX)
34 virtual bool ProcessRegistersWithSystemProcess( 34 virtual bool ProcessRegistersWithSystemProcess(
35 const std::string& process_type) OVERRIDE; 35 const std::string& process_type) OVERRIDE;
36 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE; 36 virtual bool ShouldSendMachPort(const std::string& process_type) OVERRIDE;
37 virtual bool DelaySandboxInitialization( 37 virtual bool DelaySandboxInitialization(
38 const std::string& process_type) OVERRIDE; 38 const std::string& process_type) OVERRIDE;
39 #elif defined(OS_POSIX) 39 #elif defined(OS_POSIX)
40 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE; 40 virtual content::ZygoteForkDelegate* ZygoteStarting() OVERRIDE;
41 virtual void ZygoteForked() OVERRIDE; 41 virtual void ZygoteForked() OVERRIDE;
42 #endif // OS_MACOSX 42 #endif // OS_MACOSX
43 43
44 private: 44 private:
45 void InitializeShellContentClient(const std::string& process_type); 45 void InitializeShellContentClient(const std::string& process_type);
46 46
47 scoped_ptr<content::ShellContentBrowserClient> browser_client_; 47 scoped_ptr<content::ShellContentBrowserClient> browser_client_;
48 scoped_ptr<content::ShellContentRendererClient> renderer_client_; 48 scoped_ptr<content::ShellContentRendererClient> renderer_client_;
49 scoped_ptr<content::ShellContentPluginClient> plugin_client_; 49 scoped_ptr<content::ShellContentPluginClient> plugin_client_;
50 scoped_ptr<content::ShellContentUtilityClient> utility_client_; 50 scoped_ptr<content::ShellContentUtilityClient> utility_client_;
51 content::ShellContentClient content_client_; 51 content::ShellContentClient content_client_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); 53 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);
54 }; 54 };
55 55
56 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ 56 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/shell_content_browser_client.cc ('k') | content/shell/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698