OLD | NEW |
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_SHELL_BROWSER_MAIN_PARTS_H_ | 5 #ifndef APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
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 28 matching lines...) Expand all Loading... |
39 public aura::RootWindowObserver { | 39 public aura::RootWindowObserver { |
40 public: | 40 public: |
41 explicit ShellBrowserMainParts( | 41 explicit ShellBrowserMainParts( |
42 const content::MainFunctionParams& parameters); | 42 const content::MainFunctionParams& parameters); |
43 virtual ~ShellBrowserMainParts(); | 43 virtual ~ShellBrowserMainParts(); |
44 | 44 |
45 ShellBrowserContext* browser_context() { | 45 ShellBrowserContext* browser_context() { |
46 return browser_context_.get(); | 46 return browser_context_.get(); |
47 } | 47 } |
48 | 48 |
| 49 extensions::ShellExtensionSystem* extension_system() { |
| 50 return extension_system_; |
| 51 } |
| 52 |
49 // BrowserMainParts overrides. | 53 // BrowserMainParts overrides. |
50 virtual void PreEarlyInitialization() OVERRIDE; | 54 virtual void PreEarlyInitialization() OVERRIDE; |
51 virtual void PreMainMessageLoopStart() OVERRIDE; | 55 virtual void PreMainMessageLoopStart() OVERRIDE; |
52 virtual void PostMainMessageLoopStart() OVERRIDE; | 56 virtual void PostMainMessageLoopStart() OVERRIDE; |
53 virtual int PreCreateThreads() OVERRIDE; | 57 virtual int PreCreateThreads() OVERRIDE; |
54 virtual void PreMainMessageLoopRun() OVERRIDE; | 58 virtual void PreMainMessageLoopRun() OVERRIDE; |
55 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 59 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
56 virtual void PostMainMessageLoopRun() OVERRIDE; | 60 virtual void PostMainMessageLoopRun() OVERRIDE; |
57 | 61 |
58 // aura::RootWindowObserver overrides: | 62 // aura::RootWindowObserver overrides: |
(...skipping 22 matching lines...) Expand all Loading... |
81 | 85 |
82 // Owned by the BrowserContextKeyedService system. | 86 // Owned by the BrowserContextKeyedService system. |
83 extensions::ShellExtensionSystem* extension_system_; | 87 extensions::ShellExtensionSystem* extension_system_; |
84 | 88 |
85 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 89 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
86 }; | 90 }; |
87 | 91 |
88 } // namespace apps | 92 } // namespace apps |
89 | 93 |
90 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ | 94 #endif // APPS_SHELL_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |