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

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

Issue 10809016: Move content_shell and content_browsertests code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 5 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
« no previous file with comments | « content/shell/shell_main.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) 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/shell/shell_content_client.h" 10 #include "content/shell/shell_content_client.h"
11 #include "content/public/app/content_main_delegate.h" 11 #include "content/public/app/content_main_delegate.h"
12 12
13 namespace content { 13 namespace content {
14 class ShellContentBrowserClient; 14 class ShellContentBrowserClient;
15 class ShellContentRendererClient; 15 class ShellContentRendererClient;
16 16
17 #if defined(OS_ANDROID) 17 #if defined(OS_ANDROID)
18 class BrowserMainRunner; 18 class BrowserMainRunner;
19 #endif 19 #endif
20 } // namespace content
21 20
22 class ShellMainDelegate : public content::ContentMainDelegate { 21 class ShellMainDelegate : public ContentMainDelegate {
23 public: 22 public:
24 ShellMainDelegate(); 23 ShellMainDelegate();
25 virtual ~ShellMainDelegate(); 24 virtual ~ShellMainDelegate();
26 25
27 // content::ContentMainDelegate implementation: 26 // ContentMainDelegate implementation:
28 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 27 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
29 virtual void PreSandboxStartup() OVERRIDE; 28 virtual void PreSandboxStartup() OVERRIDE;
30 virtual int RunProcess( 29 virtual int RunProcess(
31 const std::string& process_type, 30 const std::string& process_type,
32 const content::MainFunctionParams& main_function_params) OVERRIDE; 31 const MainFunctionParams& main_function_params) OVERRIDE;
33 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 32 virtual ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
34 virtual content::ContentRendererClient* 33 virtual ContentRendererClient* CreateContentRendererClient() OVERRIDE;
35 CreateContentRendererClient() OVERRIDE;
36 34
37 private: 35 private:
38 void InitializeResourceBundle(); 36 void InitializeResourceBundle();
39 37
40 scoped_ptr<content::ShellContentBrowserClient> browser_client_; 38 scoped_ptr<ShellContentBrowserClient> browser_client_;
41 scoped_ptr<content::ShellContentRendererClient> renderer_client_; 39 scoped_ptr<ShellContentRendererClient> renderer_client_;
42 content::ShellContentClient content_client_; 40 ShellContentClient content_client_;
43 41
44 #if defined(OS_ANDROID) 42 #if defined(OS_ANDROID)
45 scoped_ptr<content::BrowserMainRunner> browser_runner_; 43 scoped_ptr<BrowserMainRunner> browser_runner_;
46 #endif 44 #endif
47 45
48 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); 46 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);
49 }; 47 };
50 48
49 } // namespace content
50
51 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_ 51 #endif // CONTENT_SHELL_SHELL_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/shell/shell_main.cc ('k') | content/shell/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698