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

Side by Side Diff: extensions/shell/browser/shell_browser_main_parts.h

Issue 515573003: app_shell: Do simple audio initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrap line Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 6 #define EXTENSIONS_SHELL_BROWSER_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 18 matching lines...) Expand all
29 29
30 class DesktopController; 30 class DesktopController;
31 class ShellBrowserContext; 31 class ShellBrowserContext;
32 class ShellBrowserMainDelegate; 32 class ShellBrowserMainDelegate;
33 class ShellExtensionsBrowserClient; 33 class ShellExtensionsBrowserClient;
34 class ShellExtensionsClient; 34 class ShellExtensionsClient;
35 class ShellExtensionSystem; 35 class ShellExtensionSystem;
36 class ShellOmahaQueryParamsDelegate; 36 class ShellOmahaQueryParamsDelegate;
37 37
38 #if defined(OS_CHROMEOS) 38 #if defined(OS_CHROMEOS)
39 class ShellAudioController;
39 class ShellNetworkController; 40 class ShellNetworkController;
40 #endif 41 #endif
41 42
42 // Handles initialization of AppShell. 43 // Handles initialization of AppShell.
43 class ShellBrowserMainParts : public content::BrowserMainParts { 44 class ShellBrowserMainParts : public content::BrowserMainParts {
44 public: 45 public:
45 ShellBrowserMainParts(const content::MainFunctionParams& parameters, 46 ShellBrowserMainParts(const content::MainFunctionParams& parameters,
46 ShellBrowserMainDelegate* browser_main_delegate); 47 ShellBrowserMainDelegate* browser_main_delegate);
47 virtual ~ShellBrowserMainParts(); 48 virtual ~ShellBrowserMainParts();
48 49
(...skipping 10 matching lines...) Expand all
59 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; 60 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE;
60 virtual void PostMainMessageLoopRun() OVERRIDE; 61 virtual void PostMainMessageLoopRun() OVERRIDE;
61 virtual void PostDestroyThreads() OVERRIDE; 62 virtual void PostDestroyThreads() OVERRIDE;
62 63
63 private: 64 private:
64 // Creates and initializes the ExtensionSystem. 65 // Creates and initializes the ExtensionSystem.
65 void CreateExtensionSystem(); 66 void CreateExtensionSystem();
66 67
67 #if defined(OS_CHROMEOS) 68 #if defined(OS_CHROMEOS)
68 scoped_ptr<ShellNetworkController> network_controller_; 69 scoped_ptr<ShellNetworkController> network_controller_;
70 scoped_ptr<ShellAudioController> audio_controller_;
69 #endif 71 #endif
70 scoped_ptr<DesktopController> desktop_controller_; 72 scoped_ptr<DesktopController> desktop_controller_;
71 scoped_ptr<ShellBrowserContext> browser_context_; 73 scoped_ptr<ShellBrowserContext> browser_context_;
72 scoped_ptr<ShellExtensionsClient> extensions_client_; 74 scoped_ptr<ShellExtensionsClient> extensions_client_;
73 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; 75 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_;
74 scoped_ptr<net::NetLog> net_log_; 76 scoped_ptr<net::NetLog> net_log_;
75 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; 77 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_;
76 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; 78 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_;
77 79
78 // Owned by the KeyedService system. 80 // Owned by the KeyedService system.
79 ShellExtensionSystem* extension_system_; 81 ShellExtensionSystem* extension_system_;
80 82
81 // For running app browsertests. 83 // For running app browsertests.
82 const content::MainFunctionParams parameters_; 84 const content::MainFunctionParams parameters_;
83 85
84 // If true, indicates the main message loop should be run 86 // If true, indicates the main message loop should be run
85 // in MainMessageLoopRun. If false, it has already been run. 87 // in MainMessageLoopRun. If false, it has already been run.
86 bool run_message_loop_; 88 bool run_message_loop_;
87 89
88 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; 90 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_;
89 91
90 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 92 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
91 }; 93 };
92 94
93 } // namespace extensions 95 } // namespace extensions
94 96
95 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 97 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698