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

Side by Side Diff: apps/shell/app/shell_main_delegate.h

Issue 205653002: Add apps_browsertests target (currently running 0 tests). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam(escook) Created 6 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
« no previous file with comments | « apps/apps.gypi ('k') | apps/shell/browser/shell_browser_main_parts.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ 5 #ifndef APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_
6 #define APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ 6 #define APPS_SHELL_APP_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/public/app/content_main_delegate.h" 10 #include "content/public/app/content_main_delegate.h"
11 11
12 namespace apps { 12 namespace apps {
13 13
14 class ShellContentBrowserClient; 14 class ShellContentBrowserClient;
15 class ShellContentClient; 15 class ShellContentClient;
16 class ShellContentRendererClient; 16 class ShellContentRendererClient;
17 17
18 class ShellMainDelegate : public content::ContentMainDelegate { 18 class ShellMainDelegate : public content::ContentMainDelegate {
19 public: 19 public:
20 ShellMainDelegate(); 20 ShellMainDelegate();
21 virtual ~ShellMainDelegate(); 21 virtual ~ShellMainDelegate();
22 22
23 // ContentMainDelegate implementation: 23 // ContentMainDelegate implementation:
24 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE; 24 virtual bool BasicStartupComplete(int* exit_code) OVERRIDE;
25 virtual void PreSandboxStartup() OVERRIDE; 25 virtual void PreSandboxStartup() OVERRIDE;
26
27 protected:
jam 2014/03/20 23:43:22 nit: remove this and leave the overridden methods
Yoyo Zhou 2014/03/21 00:19:25 Done.
26 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE; 28 virtual content::ContentBrowserClient* CreateContentBrowserClient() OVERRIDE;
27 virtual content::ContentRendererClient* CreateContentRendererClient() 29 virtual content::ContentRendererClient* CreateContentRendererClient()
28 OVERRIDE; 30 OVERRIDE;
29 31
30 private: 32 private:
31 // |process_type| is zygote, renderer, utility, etc. Returns true if the 33 // |process_type| is zygote, renderer, utility, etc. Returns true if the
32 // process needs data from resources.pak. 34 // process needs data from resources.pak.
33 static bool ProcessNeedsResourceBundle(const std::string& process_type); 35 static bool ProcessNeedsResourceBundle(const std::string& process_type);
34 36
35 // Initializes the resource bundle and resources.pak. 37 // Initializes the resource bundle and resources.pak.
36 static void InitializeResourceBundle(); 38 static void InitializeResourceBundle();
37 39
38 scoped_ptr<ShellContentClient> content_client_; 40 scoped_ptr<ShellContentClient> content_client_;
39 scoped_ptr<ShellContentBrowserClient> browser_client_; 41 scoped_ptr<ShellContentBrowserClient> browser_client_;
40 scoped_ptr<ShellContentRendererClient> renderer_client_; 42 scoped_ptr<ShellContentRendererClient> renderer_client_;
41 43
42 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate); 44 DISALLOW_COPY_AND_ASSIGN(ShellMainDelegate);
43 }; 45 };
44 46
45 } // namespace apps 47 } // namespace apps
46 48
47 #endif // APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_ 49 #endif // APPS_SHELL_APP_SHELL_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « apps/apps.gypi ('k') | apps/shell/browser/shell_browser_main_parts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698