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

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

Issue 9513006: First pass at content shell for the Mac. Doesn't work yet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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"
11 #include "content/shell/shell_content_client.h" 11 #include "content/shell/shell_content_client.h"
12 #include "content/public/app/content_main_delegate.h" 12 #include "content/public/app/content_main_delegate.h"
13 13
14 namespace content { 14 namespace content {
15 class ShellContentBrowserClient; 15 class ShellContentBrowserClient;
16 class ShellContentRendererClient; 16 class ShellContentRendererClient;
17 class ShellContentPluginClient; 17 class ShellContentPluginClient;
18 class ShellContentUtilityClient; 18 class ShellContentUtilityClient;
19 } // namespace content 19 } // namespace content
20 20
21 class ShellMainDelegate : public content::ContentMainDelegate { 21 class
22 #if defined(OS_MACOSX)
23 __attribute__((visibility("default")))
24 #endif // OS_MACOSX
25 ShellMainDelegate : public content::ContentMainDelegate {
22 public: 26 public:
23 ShellMainDelegate(); 27 ShellMainDelegate();
24 virtual ~ShellMainDelegate(); 28 virtual ~ShellMainDelegate();
25 29
26 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 30 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
27 virtual void PreSandboxStartup() OVERRIDE; 31 virtual void PreSandboxStartup() OVERRIDE;
28 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE; 32 virtual void SandboxInitialized(const std::string& process_type) OVERRIDE;
29 virtual int RunProcess( 33 virtual int RunProcess(
30 const std::string& process_type, 34 const std::string& process_type,
31 const content::MainFunctionParams& main_function_params) OVERRIDE; 35 const content::MainFunctionParams& main_function_params) OVERRIDE;
(...skipping 16 matching lines...) Expand all
48 scoped_ptr<content::ShellContentBrowserClient> browser_client_; 52 scoped_ptr<content::ShellContentBrowserClient> browser_client_;
49 scoped_ptr<content::ShellContentRendererClient> renderer_client_; 53 scoped_ptr<content::ShellContentRendererClient> renderer_client_;
50 scoped_ptr<content::ShellContentPluginClient> plugin_client_; 54 scoped_ptr<content::ShellContentPluginClient> plugin_client_;
51 scoped_ptr<content::ShellContentUtilityClient> utility_client_; 55 scoped_ptr<content::ShellContentUtilityClient> utility_client_;
52 content::ShellContentClient content_client_; 56 content::ShellContentClient content_client_;
53 57
54 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); 58 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);
55 }; 59 };
56 60
57 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ 61 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698